diff --git a/manifest.dhall b/manifest.dhall index 12475ca4a6dd83e0a15aa0053d5568bd336c6f86..d8d50c31a0a9f5230b8ac09128242a0c17d6dedd 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 08f632b27ee06338d237ad811812015348689f7d..fb51d57987c70f5db46746976ed7d313ef027d2d 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 0000000000000000000000000000000000000000..f7338a82f1139cdc4b61f36f80b4e31974f55cf7 --- /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; +}