From 5580883b26cdba7540b6f84318f904d4182913e4 Mon Sep 17 00:00:00 2001 From: sternenseemann Date: Sat, 17 Aug 2024 12:44:53 +0200 Subject: [PATCH] haskellPackages.hnix-store-remote: restrict to 0.6.* hnix 0.17.0 requires hnix-store-remote < 0.7 at the moment, so we'll stay with this version until a new hnix version is released. I noticed that there is something sort of wrong with hnix in nixpkgs. We have a constraint from Stackage on hnix-store-core (and no other package) which doesn't match the rest of the hnix packages as we need to use hnix-store-core == 0.6.*. It may be prudent to check why this constraint is in Stackage and whether we can downgrade to 0.6.*. It seems to me that the store 0.8.* packages are not ready yet, i.e. no support from hnix. hnix-store-core == 0.7.* seems to be a strange version that hasn't really any other matching packages. --- .../configuration-hackage2nix/main.yaml | 2 ++ .../haskell-modules/hackage-packages.nix | 22 +++++++++++++++++++ 2 files changed, 24 insertions(+) diff --git a/pkgs/development/haskell-modules/configuration-hackage2nix/main.yaml b/pkgs/development/haskell-modules/configuration-hackage2nix/main.yaml index f5ad8223f054..7503496b9aff 100644 --- a/pkgs/development/haskell-modules/configuration-hackage2nix/main.yaml +++ b/pkgs/development/haskell-modules/configuration-hackage2nix/main.yaml @@ -32,6 +32,8 @@ default-package-overrides: # 2024-05-10: need to match hlegder from stackage - hledger-ui < 1.33 - chs-cabal < 0.1.1.2 # Incompatible with Cabal < 3.12 + # 2024-08-17: Stackage doesn't contain hnix-store-core >= 0.8 yet, so we need to restrict hnix-store-remote + - hnix-store-remote < 0.7 extra-packages: diff --git a/pkgs/development/haskell-modules/hackage-packages.nix b/pkgs/development/haskell-modules/hackage-packages.nix index a65de9463115..9ded4eb2219e 100644 --- a/pkgs/development/haskell-modules/hackage-packages.nix +++ b/pkgs/development/haskell-modules/hackage-packages.nix @@ -155318,6 +155318,27 @@ self: { }) {}; "hnix-store-remote" = callPackage + ({ mkDerivation, attoparsec, base, binary, bytestring, containers + , cryptonite, hnix-store-core, mtl, network, nix-derivation, relude + , text, time, unordered-containers + }: + mkDerivation { + pname = "hnix-store-remote"; + version = "0.6.0.0"; + sha256 = "1myib16z5rjx9wa3vbixwq3niqmkhdzjnsinqshvmk6hqwpgqv7r"; + libraryHaskellDepends = [ + attoparsec base binary bytestring containers cryptonite + hnix-store-core mtl network nix-derivation relude text time + unordered-containers + ]; + description = "Remote hnix store"; + license = lib.licenses.asl20; + maintainers = [ + lib.maintainers.Anton-Latukha lib.maintainers.sorki + ]; + }) {}; + + "hnix-store-remote_0_7_0_0" = callPackage ({ mkDerivation, aeson, attoparsec, base, bytestring, cereal , concurrency, containers, crypton, data-default-class , dependent-sum, dependent-sum-template, dlist, exceptions @@ -155346,6 +155367,7 @@ self: { testToolDepends = [ hspec-discover ]; description = "Remote hnix store"; license = lib.licenses.asl20; + hydraPlatforms = lib.platforms.none; maintainers = [ lib.maintainers.Anton-Latukha lib.maintainers.sorki ];