From 8fc4d68e4278afb23b985910e60d1109adeeb85d Mon Sep 17 00:00:00 2001
From: Daniel Firth <dan.firth@homotopic.tech>
Date: Tue, 18 Oct 2022 18:00:33 +0100
Subject: [PATCH] fsnotify: init at 0.4.1.0

---
 manifest.dhall    |  1 +
 overlay.nix       |  2 ++
 pkgs/fsnotify.nix | 25 +++++++++++++++++++++++++
 3 files changed, 28 insertions(+)
 create mode 100644 pkgs/fsnotify.nix

diff --git a/manifest.dhall b/manifest.dhall
index 9554d4bc..2288cc65 100644
--- a/manifest.dhall
+++ b/manifest.dhall
@@ -150,6 +150,7 @@ in  [ callHackage "Cabal" "3.8.1.0"
     , callHackage "fcf-containers" "0.7.1"
     , callHackage "finite-field" "0.10.0"
     , callHackage "first-class-families" "0.8.0.1"
+    , callHackage "fsnotify" "0.4.1.0"
     , callHackage "foldl" "1.4.12"
     , callHackage "foundation" "0.0.29"
     , callHackage "generic-lens-core" "2.2.1.0"
diff --git a/overlay.nix b/overlay.nix
index d142bf6e..0857d037 100644
--- a/overlay.nix
+++ b/overlay.nix
@@ -139,6 +139,8 @@ final: prev: with pkgs.haskell.lib; {
 
     foundation = prev.callPackage (./pkgs/foundation.nix) { };
 
+    fsnotify = prev.callPackage (./pkgs/fsnotify.nix) { };
+
     generic-lens-core = prev.callPackage (./pkgs/generic-lens-core.nix) { };
 
     generic-lens-lite = prev.callPackage (./pkgs/generic-lens-lite.nix) { };
diff --git a/pkgs/fsnotify.nix b/pkgs/fsnotify.nix
new file mode 100644
index 00000000..08d17e8f
--- /dev/null
+++ b/pkgs/fsnotify.nix
@@ -0,0 +1,25 @@
+{ mkDerivation, async, base, bytestring, containers, directory
+, exceptions, filepath, hinotify, lib, monad-control, random, retry
+, safe-exceptions, sandwich, temporary, text, time, unix
+, unix-compat, unliftio
+}:
+mkDerivation {
+  pname = "fsnotify";
+  version = "0.4.1.0";
+  sha256 = "d130fb4a871a181a3d1485f24da85aa49d6ff9022ce08f8401b4626143eaf7ef";
+  libraryHaskellDepends = [
+    async base bytestring containers directory filepath hinotify
+    monad-control safe-exceptions text time unix unix-compat
+  ];
+  testHaskellDepends = [
+    async base directory exceptions filepath random retry
+    safe-exceptions sandwich temporary unix-compat unliftio
+  ];
+  doHaddock = false;
+  jailbreak = true;
+  doCheck = false;
+  hyperlinkSource = false;
+  homepage = "https://github.com/haskell-fswatch/hfsnotify";
+  description = "Cross platform library for file change notification";
+  license = lib.licenses.bsd3;
+}
\ No newline at end of file
-- 
GitLab