This commit is contained in:
Taeer Bar-Yam 2025-02-25 11:22:59 -05:00
parent 3060f7b6d5
commit 20127a37f5
2 changed files with 6 additions and 4 deletions

View File

@ -1,7 +1,9 @@
args:
let pkgs = import ../shell.nix args; in
let
pkgs = import ../shell.nix args;
in
{
bashInteractive = pkgs.runCommand "bash" {} ''
bashInteractive = pkgs.runCommand "bash" { } ''
mkdir -p $out/bin
echo "echo 2" > $out/bin/bash
chmod +x $out/bin/bash

View File

@ -88,7 +88,7 @@ let
name = "shellDrvFakeBash4";
builder = "/does/not/exist";
inherit stdenv;
PATH="${fakeBash4}/bin:${path}";
PATH = "${fakeBash4}/bin:${path}";
};
# Used by nix-shell -p
@ -127,7 +127,7 @@ let
chmod a+rx $out/bin/ruby
'';
fakeBash4 = runCommand "fakeBash4" {} ''
fakeBash4 = runCommand "fakeBash4" { } ''
mkdir -p $out/bin
echo 'echo 4' > $out/bin/bash
chmod a+rx $out/bin/bash