Skip to content

Commit

Permalink
Put lower bound on fsnotify, drop confDebounce
Browse files Browse the repository at this point in the history
  • Loading branch information
sorki committed Nov 12, 2023
1 parent a1865e5 commit 7bb7e16
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 11 deletions.
9 changes: 2 additions & 7 deletions default.nix
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
{ rev ? "7c6985653708c5fade76d2014824ff333b0a07b2"
, overlays ? [ (import ./overlay.nix) ]
, pkgs ?
if ((rev == "") || (rev == "default") || (rev == "local"))
then import <nixpkgs> { inherit overlays; }
# Do not guard with hash, so the project is able to use current channels (rolling `rev`) of Nixpkgs
else import (builtins.fetchTarball "https://github.com/NixOS/nixpkgs/archive/${rev}.tar.gz") { inherit overlays; }
{ overlays ? [ (import ./overlay.nix) ]
, pkgs ? import <nixpkgs> { inherit overlays; }
}:

let
Expand Down
2 changes: 1 addition & 1 deletion implicitpipe.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ library
, data-default
, directory
, filepath
, fsnotify
, fsnotify >= 0.4
, GPipe >= 2.2
, GPipe-GLFW >= 1.4
, GLFW-b
Expand Down
4 changes: 2 additions & 2 deletions overlay.nix
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ in
overrides = super.lib.composeExtensions (old.overrides or (_: _: {}))
(hself: hsuper: {
#GPipe = super.haskell.lib.doJailbreak hsuper.GPipe;
GPipe = hsuper.callCabal2nix "GPipe" "${gpipeSrc}/GPipe-Core" {};
GPipe-GLFW = hsuper.callCabal2nix "GPipe-GLFW" ("${gpipeGlfwSrc}/GPipe-GLFW") {};
GPipe = super.haskell.lib.doJailbreak (hsuper.callCabal2nix "GPipe" "${gpipeSrc}/GPipe-Core" {});
GPipe-GLFW = super.haskell.lib.doJailbreak (hsuper.callCabal2nix "GPipe-GLFW" ("${gpipeGlfwSrc}/GPipe-GLFW") {});

# for development
# implicit = hsuper.callCabal2nix "implicit" (super.fetchFromGitHub {
Expand Down
2 changes: 1 addition & 1 deletion src/Graphics/Implicit/Viewer/Loaders.hs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ runUpdater modFileRel initialResolution renderChan = void $ do
eventHandler (FSNotify.Modified fp _ _) = atomically $ writeTChan watchEvent fp
eventHandler _ = return ()

void $ async $ FSNotify.withManagerConf (FSNotify.defaultConfig { FSNotify.confDebounce = FSNotify.Debounce 1 }) $ \mgr -> do
void $ async $ FSNotify.withManagerConf FSNotify.defaultConfig $ \mgr -> do
void $ FSNotify.watchDir
mgr
(System.FilePath.takeDirectory modFile)
Expand Down

0 comments on commit 7bb7e16

Please sign in to comment.