mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-18 03:34:58 +00:00
Merge pull request #135670 from NixOS/docker-tools-usr-bin-env
dockerTools.usrBinEnv: add
This commit is contained in:
commit
b5f2c5f132
@ -759,6 +759,13 @@ rec {
|
|||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# This provides a /usr/bin/env, for shell scripts using the
|
||||||
|
# "#!/usr/bin/env executable" shebang.
|
||||||
|
usrBinEnv = runCommand "usr-bin-env" { } ''
|
||||||
|
mkdir -p $out/usr/bin
|
||||||
|
ln -s ${pkgs.coreutils}/bin/env $out/usr/bin
|
||||||
|
'';
|
||||||
|
|
||||||
# This provides /bin/sh, pointing to bashInteractive.
|
# This provides /bin/sh, pointing to bashInteractive.
|
||||||
binSh = runCommand "bin-sh" { } ''
|
binSh = runCommand "bin-sh" { } ''
|
||||||
mkdir -p $out/bin
|
mkdir -p $out/bin
|
||||||
|
Loading…
Reference in New Issue
Block a user