Skip to content

Commit ed1727c

Browse files
committed
addPackageKeys
1 parent 0e95d7e commit ed1727c

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

flake.nix

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -230,9 +230,10 @@
230230

231231
# Extra configurations (possibly compiler-dependent) to add to all projects.
232232
extraConfig = compiler:
233-
{
233+
let addPackageKeys = x: x // { package-keys = builtins.attrNames x.packages; };
234+
in {
234235
modules = [
235-
({pkgs, ...}: pkgs.haskell-nix.haskellLib.addPackageKeys {
236+
(addPackageKeys {
236237
# Packages that depend on the plutus-tx plugin have broken haddock
237238
packages = {
238239
cardano-node-emulator.doHaddock = false;
@@ -241,7 +242,7 @@
241242
plutus-scripts-bench.doHaddock = false;
242243
};
243244
})
244-
({pkgs, ...}: pkgs.haskell-nix.haskellLib.addPackageKeys {
245+
(addPackageKeys {
245246
# Packages that have haddock that is broken on 8.10
246247
# See https://github.com/input-output-hk/cardano-haskell-packages/issues/482
247248
packages = lib.mkIf (compiler == "ghc810") {

0 commit comments

Comments
 (0)