Skip to content

Commit a0d614e

Browse files
jasagredohamishmack
andcommitted
Fix cabal-docspec in Hydra
An extra version of `text` is in the plan.json as a dependency of a `custom-setup` or `build-tool-depends`. Using `exactDeps = true` prevent those from getting into the plan.json. Co-authored-by: Hamish Mackenzie <Hamish.K.Mackenzie@gmail.com>
1 parent 4af1ec6 commit a0d614e

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

nix/haskell.nix

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,13 @@ in
8989
nativeBuildInputs = [
9090
final.fd
9191
final.cabal-docspec
92-
(hsPkgs.ghcWithPackages
93-
(ps: [ ps.latex-svg-image ] ++ lib.filter (p: p ? components.library)
94-
(lib.attrValues (haskell-nix.haskellLib.selectProjectPackages ps))))
92+
(hsPkgs.shellFor {
93+
withHoogle = false;
94+
exactDeps = true;
95+
packages = _: [ ];
96+
additional = (ps: [ ps.latex-svg-image ] ++ lib.filter (p: p ? components.library)
97+
(lib.attrValues (haskell-nix.haskellLib.selectProjectPackages ps)));
98+
}).ghc
9599
final.texliveFull
96100
];
97101

0 commit comments

Comments
 (0)