From 5a88469b89b8f651430e8da4c348f3521b6ae8a3 Mon Sep 17 00:00:00 2001
From: Max Tomago <noreply@tomagotech.com>
Date: Tue, 29 Nov 2022 15:00:47 +0100
Subject: [PATCH] io-streams: init at 1.5.2.2

---
 horizon.dhall       |  1 +
 overlay.nix         |  2 ++
 pkgs/io-streams.nix | 79 +++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 82 insertions(+)
 create mode 100644 pkgs/io-streams.nix

diff --git a/horizon.dhall b/horizon.dhall
index 984d831..4c6dbbb 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 218e383..5f8c69c 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 0000000..cc49e5f
--- /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;
+}
-- 
GitLab