From 86896617a6674c03a3fee5a9bd72d9d23dd7e61f Mon Sep 17 00:00:00 2001 From: Daniel Firth <dan.firth@homotopic.tech> Date: Sat, 5 Nov 2022 09:20:23 +0000 Subject: [PATCH] simple-sendfile: init at 0.2.30 --- manifest.dhall | 1 + overlay.nix | 2 ++ pkgs/simple-sendfile.nix | 46 ++++++++++++++++++++++++++++++++++++++++ 3 files changed, 49 insertions(+) create mode 100644 pkgs/simple-sendfile.nix diff --git a/manifest.dhall b/manifest.dhall index 12475ca4..d8d50c31 100644 --- a/manifest.dhall +++ b/manifest.dhall @@ -470,6 +470,7 @@ in [ callHackage "Cabal" "3.8.1.0" , callHackage "servant-static-th" "1.0.0.0" , callHackage "shake" "0.19.6" , callHackage "shelly" "1.10.0" + , callHackage "simple-sendfile" "0.2.30" , callHackage "singleton-bool" "0.1.6" , callHackage "singletons" "3.0.2" , callHackage "slugify" "0.1.0.1" diff --git a/overlay.nix b/overlay.nix index 08f632b2..fb51d579 100644 --- a/overlay.nix +++ b/overlay.nix @@ -597,6 +597,8 @@ final: prev: with pkgs.haskell.lib; { shelly = prev.callPackage (./pkgs/shelly.nix) { }; + simple-sendfile = prev.callPackage (./pkgs/simple-sendfile.nix) { }; + singleton-bool = prev.callPackage (./pkgs/singleton-bool.nix) { }; singletons = prev.callPackage (./pkgs/singletons.nix) { }; diff --git a/pkgs/simple-sendfile.nix b/pkgs/simple-sendfile.nix new file mode 100644 index 00000000..f7338a82 --- /dev/null +++ b/pkgs/simple-sendfile.nix @@ -0,0 +1,46 @@ +{ mkDerivation +, base +, bytestring +, conduit +, conduit-extra +, directory +, hspec +, HUnit +, lib +, network +, process +, resourcet +, unix +}: +mkDerivation { + pname = "simple-sendfile"; + version = "0.2.30"; + sha256 = "b6864d2b3c62ff8ea23fa24e9e26f751bfe5253c8efb1f1e4fee2ba91d065284"; + isLibrary = true; + isExecutable = false; + enableSeparateDataOutput = false; + libraryHaskellDepends = [ base bytestring network unix ]; + testHaskellDepends = [ + base + bytestring + conduit + conduit-extra + directory + hspec + HUnit + network + process + resourcet + unix + ]; + enableLibraryProfiling = false; + enableExecutableProfiling = false; + doHaddock = false; + jailbreak = true; + doCheck = false; + doBenchmark = false; + hyperlinkSource = false; + description = "Cross platform library for the sendfile system call"; + license = lib.licenses.bsd3; + broken = false; +} -- GitLab