diff options
author | Profpatsch <mail@profpatsch.de> | 2016-08-26 16:21:30 +0200 |
---|---|---|
committer | Profpatsch <mail@profpatsch.de> | 2016-08-26 16:21:30 +0200 |
commit | 70ed0fd3dec4f3fb074f995cb7d495406162216d (patch) | |
tree | c9b7051c357c27a739f981931c69d4991074065d /pkgs | |
parent | eba0098eabd89e2cab67a51fd054240b151d9aab (diff) | |
download | nixpkgs-70ed0fd3dec4f3fb074f995cb7d495406162216d.tar nixpkgs-70ed0fd3dec4f3fb074f995cb7d495406162216d.tar.gz nixpkgs-70ed0fd3dec4f3fb074f995cb7d495406162216d.tar.bz2 nixpkgs-70ed0fd3dec4f3fb074f995cb7d495406162216d.tar.lz nixpkgs-70ed0fd3dec4f3fb074f995cb7d495406162216d.tar.xz nixpkgs-70ed0fd3dec4f3fb074f995cb7d495406162216d.tar.zst nixpkgs-70ed0fd3dec4f3fb074f995cb7d495406162216d.zip |
haskellPackages.spy: fix for new fsnotify version
Temporary fix, until it is merged upstream.
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/development/haskell-modules/configuration-common.nix | 3 | ||||
-rw-r--r-- | pkgs/development/haskell-modules/patches/spy.patch | 26 |
2 files changed, 29 insertions, 0 deletions
diff --git a/pkgs/development/haskell-modules/configuration-common.nix b/pkgs/development/haskell-modules/configuration-common.nix index 7cba0d1599f..f422908e7fb 100644 --- a/pkgs/development/haskell-modules/configuration-common.nix +++ b/pkgs/development/haskell-modules/configuration-common.nix @@ -975,4 +975,7 @@ self: super: { ''; }); + # https://bitbucket.org/ssaasen/spy/pull-requests/3/fsnotify-dropped-system-filepath + spy = appendPatch super.spy ./patches/spy.patch; + } diff --git a/pkgs/development/haskell-modules/patches/spy.patch b/pkgs/development/haskell-modules/patches/spy.patch new file mode 100644 index 00000000000..4c4e1844361 --- /dev/null +++ b/pkgs/development/haskell-modules/patches/spy.patch @@ -0,0 +1,26 @@ +diff --git a/src/Spy/Watcher.hs b/src/Spy/Watcher.hs + index 8512613..4df67d4 100644 +--- a/src/Spy/Watcher.hs ++++ b/src/Spy/Watcher.hs +@@ -50,7 +50,7 @@ plainFormat = Plain + spy :: Spy -> IO b -> IO () + spy config after = withManager $ \wm -> + runIndefinitely +- (watchTree wm (decodeString $ dir config) ++ (watchTree wm (dir config) + (not . skipEvent config . eventPath) + (handleEvent config)) + (const after) +@@ -106,9 +106,9 @@ eventTime (Modified _ t) = t + eventTime (Removed _ t) = t + + eventPath :: Event -> FilePath +-eventPath (Added fp _) = encodeString fp +-eventPath (Modified fp _) = encodeString fp +-eventPath (Removed fp _) = encodeString fp ++eventPath (Added fp _) = fp ++eventPath (Modified fp _) = fp ++eventPath (Removed fp _) = fp + + eventType :: Event -> FilePath + eventType (Added _ _) = "Added" |