From f6b3d12b4a5f9d43666e682c07495c9cdd169ede Mon Sep 17 00:00:00 2001 From: sternenseemann <0rpkxez4ksa01gb3typccl0i@systemli.org> Date: Thu, 29 Jul 2021 14:49:49 +0200 Subject: [PATCH] haskellPackages.streamly-*: unbreak where possible Most of the failures where caused by being ahead of the stackage streamly. Old failures for streamly-fsnotify don't happen anymore. --- .../configuration-hackage2nix/broken.yaml | 1 - .../configuration-hackage2nix/main.yaml | 8 +++- .../haskell-modules/hackage-packages.nix | 44 ++++++++++++++++++- 3 files changed, 48 insertions(+), 5 deletions(-) diff --git a/pkgs/development/haskell-modules/configuration-hackage2nix/broken.yaml b/pkgs/development/haskell-modules/configuration-hackage2nix/broken.yaml index f79522ddb8c0..f258e093c792 100644 --- a/pkgs/development/haskell-modules/configuration-hackage2nix/broken.yaml +++ b/pkgs/development/haskell-modules/configuration-hackage2nix/broken.yaml @@ -4531,7 +4531,6 @@ broken-packages: - streaming-utils - streaming-with - streamly-examples - - streamly-fsnotify - stream-monad - streamproc - StrictBench diff --git a/pkgs/development/haskell-modules/configuration-hackage2nix/main.yaml b/pkgs/development/haskell-modules/configuration-hackage2nix/main.yaml index ec372443c3ed..8bd6c316f284 100644 --- a/pkgs/development/haskell-modules/configuration-hackage2nix/main.yaml +++ b/pkgs/development/haskell-modules/configuration-hackage2nix/main.yaml @@ -85,8 +85,12 @@ default-package-overrides: - dual-tree < 0.2.3.0 - diagrams-core < 1.5.0 - diagrams-lib < 1.4.4 - # streamly-bytestring 0.1.3 needs streamly 0.8.0 which is not included in our stackage snapshot - - streamly-bytestring == 0.1.2 + # streamly-* packages which are not in stackage and to be constrained + # as long as we have streamly < 0.8.0 + - streamly-archive < 0.1.0 + - streamly-bytestring < 0.1.3 + - streamly-lmdb < 0.3.0 + - streamly-process - distribution-nixpkgs < 1.6.0 # 2021-07-26: required until cabal2nix 2.17.1 is released extra-packages: diff --git a/pkgs/development/haskell-modules/hackage-packages.nix b/pkgs/development/haskell-modules/hackage-packages.nix index 9c200bb8c0af..9995fcb0f4cc 100644 --- a/pkgs/development/haskell-modules/hackage-packages.nix +++ b/pkgs/development/haskell-modules/hackage-packages.nix @@ -250444,6 +250444,27 @@ self: { }) {}; "streamly-archive" = callPackage + ({ mkDerivation, archive, base, bytestring, cryptonite, directory + , filepath, QuickCheck, streamly, tar, tasty, tasty-hunit + , tasty-quickcheck, temporary, zlib + }: + mkDerivation { + pname = "streamly-archive"; + version = "0.0.2"; + sha256 = "00cd5ssa5hi4pvc5li24z68f1k50h02frn4668gcrv8lr5kh6s50"; + enableSeparateDataOutput = true; + libraryHaskellDepends = [ base bytestring streamly ]; + librarySystemDepends = [ archive ]; + testHaskellDepends = [ + base bytestring cryptonite directory filepath QuickCheck streamly + tar tasty tasty-hunit tasty-quickcheck temporary zlib + ]; + testSystemDepends = [ archive ]; + description = "Stream data from archives using the streamly library"; + license = lib.licenses.bsd3; + }) {archive = null;}; + + "streamly-archive_0_1_0" = callPackage ({ mkDerivation, archive, base, bytestring, cryptonite, directory , filepath, QuickCheck, streamly, tar, tasty, tasty-hunit , tasty-quickcheck, temporary, zlib @@ -250462,6 +250483,7 @@ self: { testSystemDepends = [ archive ]; description = "Stream data from archives using the streamly library"; license = lib.licenses.bsd3; + hydraPlatforms = lib.platforms.none; }) {archive = null;}; "streamly-binary" = callPackage @@ -250587,11 +250609,28 @@ self: { ]; description = "Folder watching as a Streamly stream"; license = lib.licenses.bsd3; - hydraPlatforms = lib.platforms.none; - broken = true; }) {}; "streamly-lmdb" = callPackage + ({ mkDerivation, async, base, bytestring, directory, lmdb + , QuickCheck, streamly, tasty, tasty-quickcheck, temporary + }: + mkDerivation { + pname = "streamly-lmdb"; + version = "0.2.1"; + sha256 = "08rj29i3vb4ahgrd2zhyi2sl1lk95s7vk020xx9mwzi8sbn0ay05"; + libraryHaskellDepends = [ async base bytestring streamly ]; + librarySystemDepends = [ lmdb ]; + testHaskellDepends = [ + async base bytestring directory QuickCheck streamly tasty + tasty-quickcheck temporary + ]; + testSystemDepends = [ lmdb ]; + description = "Stream data to or from LMDB databases using the streamly library"; + license = lib.licenses.bsd3; + }) {inherit (pkgs) lmdb;}; + + "streamly-lmdb_0_3_0" = callPackage ({ mkDerivation, async, base, bytestring, directory, lmdb , QuickCheck, streamly, tasty, tasty-quickcheck, temporary }: @@ -250608,6 +250647,7 @@ self: { testSystemDepends = [ lmdb ]; description = "Stream data to or from LMDB databases using the streamly library"; license = lib.licenses.bsd3; + hydraPlatforms = lib.platforms.none; }) {inherit (pkgs) lmdb;}; "streamly-posix" = callPackage