Skip to content

Commit c94ed63

Browse files
committed
Fixes for shellFor and hoogle in shell
1 parent 08bb11b commit c94ed63

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

materialized/dummy-ghc/x86_64-w64-mingw32-x86_64-w64-mingw32-ghc-9.2.4-x86_64-darwin/ghc-pkg/dump-global

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

overlays/bootstrap.nix

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@ let
2424
fi
2525
done
2626
27-
mkdir -p $out/evalDeps
27+
mkdir -p $out/envDeps
2828
for P in $($out/bin/${targetPrefix}ghc-pkg list --simple-output | sed 's/-[0-9][0-9.]*//g'); do
29-
touch $out/evalDeps/$P
29+
touch $out/envDeps/$P
3030
if id=$($out/bin/${targetPrefix}ghc-pkg field $P id --simple-output); then
31-
echo "package-id $id" >> $out/evalDeps/$P
31+
echo "package-id $id" >> $out/envDeps/$P
3232
fi
3333
done
3434
'';

overlays/default-setup.nix

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# to compute the same derivation multiple times.
77
final: prev:
88
let
9-
nonReinstallablePkgs = [];
9+
nonReinstallablePkgs = ["base" "Cabal"];
1010
haskellLib = final.haskell-nix.haskellLib;
1111
defaultSetupSrc =
1212
if final.stdenv.hostPlatform.isGhcjs
@@ -80,7 +80,7 @@ let
8080
# add a custom Cabal package to the dependencies. That way custom
8181
# setups won't complain about e.g. binary from the Cabal dependencies
8282
# and binary from the global package-db.
83-
nonReinstallablePkgs = [];
83+
nonReinstallablePkgs = ["base"];
8484
})) {
8585
useCabalFromCabalInstall = true;
8686
useCabalFromGHC = false;
@@ -95,7 +95,7 @@ let
9595
||
9696
# These are the dependencies of `Cabal`
9797
!builtins.elem packageName
98-
["nix-tools" "alex" "happy" "hscolour" "Cabal" "bytestring" "aeson" "time"
98+
["alex" "happy" "hscolour" "Cabal" "bytestring" "time"
9999
"filepath" "base-compat-batteries" "base-compat" "unix" "directory" "transformers"
100100
"containers" "binary" "mtl" "text" "process" "parsec"]
101101
then defaultSetup.useCabalFromCabalInstall

0 commit comments

Comments
 (0)