From cc708024f66debc2d7562388173c8f4777bd2e44 Mon Sep 17 00:00:00 2001 From: sternenseemann Date: Mon, 14 Jul 2025 12:57:07 +0200 Subject: [PATCH] stack: use hpack == 0.38.1 to match upstream See https://github.com/NixOS/nixpkgs/issues/223390 for background info. --- .../haskell-modules/configuration-common.nix | 2 +- .../configuration-hackage2nix/main.yaml | 1 - .../haskell-modules/hackage-packages.nix | 133 ------------------ 3 files changed, 1 insertion(+), 135 deletions(-) diff --git a/pkgs/development/haskell-modules/configuration-common.nix b/pkgs/development/haskell-modules/configuration-common.nix index a77cffe2ad65..bd96845634c7 100644 --- a/pkgs/development/haskell-modules/configuration-common.nix +++ b/pkgs/development/haskell-modules/configuration-common.nix @@ -2124,7 +2124,7 @@ with haskellLib; self: super: { # stack needs to be built with the same hpack version that the upstream releases use. # https://github.com/NixOS/nixpkgs/issues/223390 - hpack = self.hpack_0_38_0; + hpack = self.hpack_0_38_1; } ); diff --git a/pkgs/development/haskell-modules/configuration-hackage2nix/main.yaml b/pkgs/development/haskell-modules/configuration-hackage2nix/main.yaml index 732ff62231c3..657c958b1d72 100644 --- a/pkgs/development/haskell-modules/configuration-hackage2nix/main.yaml +++ b/pkgs/development/haskell-modules/configuration-hackage2nix/main.yaml @@ -96,7 +96,6 @@ extra-packages: - hlint == 3.4.1 # 2022-09-21: preserve for ghc 8.10 - hlint == 3.6.* # 2025-04-14: needed for hls with ghc-lib-parser 9.6 - hnix-store-core < 0.7 # 2023-12-11: required by hnix-store-remote 0.6 - - hpack == 0.38.0 # 2025-04-23: preserve for stack == 3.5.1 - hspec < 2.8 # 2022-04-07: Needed for tasty-hspec 1.1.6 - hspec-core < 2.8 # 2022-04-07: Needed for tasty-hspec 1.1.6 - hspec-discover < 2.8 # 2022-04-07: Needed for tasty-hspec 1.1.6 diff --git a/pkgs/development/haskell-modules/hackage-packages.nix b/pkgs/development/haskell-modules/hackage-packages.nix index 9cf9cbfe6ba0..4a66de49e257 100644 --- a/pkgs/development/haskell-modules/hackage-packages.nix +++ b/pkgs/development/haskell-modules/hackage-packages.nix @@ -343075,139 +343075,6 @@ self: { } ) { }; - "hpack_0_38_0" = callPackage ( - { - mkDerivation, - aeson, - base, - bifunctors, - bytestring, - Cabal, - containers, - crypton, - deepseq, - directory, - filepath, - Glob, - hspec, - hspec-discover, - http-client, - http-client-tls, - http-types, - HUnit, - infer-license, - interpolate, - mockery, - mtl, - pretty, - QuickCheck, - scientific, - template-haskell, - temporary, - text, - transformers, - unordered-containers, - vector, - yaml, - }: - mkDerivation { - pname = "hpack"; - version = "0.38.0"; - sha256 = "0iysz3xnxhjj49hjz9gv56awaldamrbidkiw0xd873g5yfyhyljp"; - revision = "1"; - editedCabalFile = "02pqfqqijvr2z3ki2rnb9nlavhzm59qbbvhq89bfdvhcicfgmmf4"; - isLibrary = true; - isExecutable = true; - libraryHaskellDepends = [ - aeson - base - bifunctors - bytestring - Cabal - containers - crypton - deepseq - directory - filepath - Glob - http-client - http-client-tls - http-types - infer-license - mtl - pretty - scientific - text - transformers - unordered-containers - vector - yaml - ]; - executableHaskellDepends = [ - aeson - base - bifunctors - bytestring - Cabal - containers - crypton - deepseq - directory - filepath - Glob - http-client - http-client-tls - http-types - infer-license - mtl - pretty - scientific - text - transformers - unordered-containers - vector - yaml - ]; - testHaskellDepends = [ - aeson - base - bifunctors - bytestring - Cabal - containers - crypton - deepseq - directory - filepath - Glob - hspec - http-client - http-client-tls - http-types - HUnit - infer-license - interpolate - mockery - mtl - pretty - QuickCheck - scientific - template-haskell - temporary - text - transformers - unordered-containers - vector - yaml - ]; - testToolDepends = [ hspec-discover ]; - description = "A modern format for Haskell packages"; - license = lib.licenses.mit; - hydraPlatforms = lib.platforms.none; - mainProgram = "hpack"; - } - ) { }; - "hpack_0_38_1" = callPackage ( { mkDerivation,