Skip to content

Commit 7cd0715

Browse files
committed
shellFor: allow specifying buildInputs; Example:
default.nix-tools._raw.shellFor { packages = p: map (x: p."${x}") [ "io-sim" "io-sim-classes" "ouroboros-consensus" "ouroboros-network" "typed-transitions" ]; withHoogle = withHoogle; buildInputs = with default.nix-tools._raw; [ cabal-install.components.exes.cabal ]; }
1 parent 6f8d104 commit 7cd0715

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

builder/shell-for.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{ buildPackages, lib, stdenv, ghcForComponent, makeConfigFiles, hsPkgs }:
22

3-
{ packages, withHoogle ? true } @ args:
3+
{ packages, buildInputs ? [], withHoogle ? true } @ args:
44

55
let
66
selected = packages hsPkgs;
@@ -29,7 +29,7 @@ in
2929
stdenv.mkDerivation (mkDrvArgs // {
3030
name = mkDrvArgs.name or name;
3131

32-
buildInputs = systemInputs ++ mkDrvArgs.buildInputs or [];
32+
buildInputs = buildInputs ++ systemInputs ++ mkDrvArgs.buildInputs or [];
3333
nativeBuildInputs = [ ghcEnv ] ++ nativeBuildInputs ++ mkDrvArgs.nativeBuildInputs or [];
3434
phases = ["installPhase"];
3535
installPhase = "echo $nativeBuildInputs $buildInputs > $out";

0 commit comments

Comments
 (0)