From f78644691c6151fa4a6761470fb3e58d81b576a9 Mon Sep 17 00:00:00 2001 From: Daniel Firth <dan.firth@homotopic.tech> Date: Fri, 2 Dec 2022 08:43:13 +0000 Subject: [PATCH] filelock: init at 0.1.1.5 --- horizon.dhall | 1 + overlay.nix | 2 ++ pkgs/filelock.nix | 22 ++++++++++++++++++++++ 3 files changed, 25 insertions(+) create mode 100644 pkgs/filelock.nix diff --git a/horizon.dhall b/horizon.dhall index 9fe71a9..a128258 100644 --- a/horizon.dhall +++ b/horizon.dhall @@ -172,6 +172,7 @@ let otherLibraries = , H.callHackage "dns" "4.1.0" , H.callHackage "doctest-discover" "0.2.0.0" , H.callHackage "dom-lt" "0.2.3" + , H.callHackage "filelock" "0.1.1.5" , H.callHackage "finite-typelits" "0.1.6.0" , H.callGit "flat" diff --git a/overlay.nix b/overlay.nix index 635f11e..d3f2d57 100644 --- a/overlay.nix +++ b/overlay.nix @@ -121,6 +121,8 @@ final: prev: with pkgs.haskell.lib; { dom-lt = final.callPackage (./pkgs/dom-lt.nix) { }; + filelock = final.callPackage (./pkgs/filelock.nix) { }; + finite-typelits = final.callPackage (./pkgs/finite-typelits.nix) { }; flat = final.callPackage (./pkgs/flat.nix) { }; diff --git a/pkgs/filelock.nix b/pkgs/filelock.nix new file mode 100644 index 0000000..a41492d --- /dev/null +++ b/pkgs/filelock.nix @@ -0,0 +1,22 @@ +{ mkDerivation, async, base, lib, process, unix }: +mkDerivation { + pname = "filelock"; + version = "0.1.1.5"; + sha256 = "50ebea81e8443356af26f32221d4594709d94102445931673fcd94a44e244419"; + isLibrary = true; + isExecutable = false; + enableSeparateDataOutput = false; + libraryHaskellDepends = [ base unix ]; + testHaskellDepends = [ async base process ]; + enableLibraryProfiling = true; + enableExecutableProfiling = true; + doHaddock = false; + jailbreak = true; + doCheck = false; + doBenchmark = false; + hyperlinkSource = false; + homepage = "http://github.com/takano-akio/filelock"; + description = "Portable interface to file locking (flock / LockFileEx)"; + license = lib.licenses.publicDomain; + broken = false; +} -- GitLab