From e649d536183f9839afe0f42fec628bfbd0af0271 Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Mon, 1 Jan 2024 14:12:17 +0000 Subject: [PATCH] haskell.packages.ghc810: drop unevaluatable packages `haskell.packages.ghc810` has a few packages that fails to evaluate by referring non-existent attributes. This turns evaluation attempts into unrecoverable errors. Before the change an attempt to instantiate all `ghc810` packages failed as: $ nix-instantiate --strict --eval --expr 'with import ./. {}; lib.mapAttrs (n: v: builtins.tryEval (lib.isDerivation v)) haskell.packages.ghc810' error: error: attribute 'stylish-haskell_0_14_3_0' missing at pkgs/development/haskell-modules/configuration-ghc-8.10.x.nix:114:33: 113| hlint = self.hlint_3_4_1; 114| stylish-haskell = doJailbreak self.stylish-haskell_0_14_3_0; | ^ 115| Did you mean stylish-haskell_0_14_4_0? The change drops overrides that refer non-existent packages. --- .../development/haskell-modules/configuration-ghc-8.10.x.nix | 5 ----- 1 file changed, 5 deletions(-) diff --git a/pkgs/development/haskell-modules/configuration-ghc-8.10.x.nix b/pkgs/development/haskell-modules/configuration-ghc-8.10.x.nix index c541c852df36..1647987c6b21 100644 --- a/pkgs/development/haskell-modules/configuration-ghc-8.10.x.nix +++ b/pkgs/development/haskell-modules/configuration-ghc-8.10.x.nix @@ -105,14 +105,9 @@ self: super: { ghc-lib-parser-ex = doDistribute self.ghc-lib-parser-ex_9_2_1_1; ghc-lib = doDistribute self.ghc-lib_9_2_8_20230729; - mod = super.mod_0_1_2_2; path-io = doJailbreak super.path-io; - - ormolu = self.ormolu_0_5_0_1; - fourmolu = dontCheck self.fourmolu_0_9_0_0; hlint = self.hlint_3_4_1; - stylish-haskell = doJailbreak self.stylish-haskell_0_14_3_0; mime-string = disableOptimization super.mime-string;