diff --git a/horizon.dhall b/horizon.dhall index 984d831d2032a0dc58a25e1ac776711d91339bac..4c6dbbb7203a340822d0228c989545dd57625b7a 100644 --- a/horizon.dhall +++ b/horizon.dhall @@ -205,6 +205,7 @@ let otherLibraries = , H.callHackage "hxt-unicode" "9.0.2.4" , callIoSim "io-classes" "io-classes" , callIoSim "io-sim" "io-sim" + , H.callHackage "io-streams" "1.5.2.2" , H.callHackage "inline-c" "0.9.1.6" , H.callCabal2nix "inline-r" diff --git a/overlay.nix b/overlay.nix index 218e383d17a45dc43a02d0d993794d03ec6bc28f..5f8c69cd84b63ad7af5a70dbf645dff9f096e9cb 100644 --- a/overlay.nix +++ b/overlay.nix @@ -161,6 +161,8 @@ final: prev: with pkgs.haskell.lib; { io-sim = final.callPackage (./pkgs/io-sim.nix) { }; + io-streams = final.callPackage (./pkgs/io-streams.nix) { }; + katip = final.callPackage (./pkgs/katip.nix) { }; lazy-search = final.callPackage (./pkgs/lazy-search.nix) { }; diff --git a/pkgs/io-streams.nix b/pkgs/io-streams.nix new file mode 100644 index 0000000000000000000000000000000000000000..cc49e5faa2f1881c0f882b3f89853eba17243d87 --- /dev/null +++ b/pkgs/io-streams.nix @@ -0,0 +1,79 @@ +{ mkDerivation +, HUnit +, QuickCheck +, attoparsec +, base +, bytestring +, deepseq +, directory +, filepath +, lib +, mtl +, network +, primitive +, process +, test-framework +, test-framework-hunit +, test-framework-quickcheck2 +, text +, time +, transformers +, vector +, zlib +, zlib-bindings +}: +mkDerivation { + pname = "io-streams"; + version = "1.5.2.2"; + sha256 = "d365d5051696c15414ebe23749fc67475a532234b7c7d77060323d149a8fc4fe"; + configureFlags = [ "-fnointeractivetests" ]; + isLibrary = true; + isExecutable = false; + enableSeparateDataOutput = false; + libraryHaskellDepends = [ + attoparsec + base + bytestring + network + primitive + process + text + time + transformers + vector + zlib-bindings + ]; + testHaskellDepends = [ + attoparsec + base + bytestring + deepseq + directory + filepath + HUnit + mtl + network + primitive + process + QuickCheck + test-framework + test-framework-hunit + test-framework-quickcheck2 + text + time + transformers + vector + zlib + zlib-bindings + ]; + enableLibraryProfiling = true; + enableExecutableProfiling = true; + doHaddock = false; + jailbreak = true; + doCheck = false; + doBenchmark = false; + hyperlinkSource = false; + description = "Simple, composable, and easy-to-use stream I/O"; + license = lib.licenses.bsd3; + broken = false; +}