diff options
author | aszlig <aszlig@redmoonstudios.org> | 2014-11-25 02:01:22 +0100 |
---|---|---|
committer | aszlig <aszlig@redmoonstudios.org> | 2014-11-25 02:05:48 +0100 |
commit | 83c2fcada472fd8594fd51a4677fb2c60b1c26e8 (patch) | |
tree | e3d9cfce8a32a8a80fbf544aadf90c781ad73947 /pkgs/misc/my-env | |
parent | ca6d86b7fb10d656b12c5d3e7a5e8bb3936f79e5 (diff) |
my-env: Provide explicit store path for "rm".
If you do not provide any dependencies which don't propagate coreutils,
you'll get "rm: No such file or directory". Like for example by using
this:
nix-build -E '(import <nixpkgs> {}).myEnvFun {
name = "mybrokentest";
buildInputs = [];
}'
Thanks to "ewemoa" from the #nixos IRC channel for spotting this.
Signed-off-by: aszlig <aszlig@redmoonstudios.org>
Diffstat (limited to 'pkgs/misc/my-env')
-rw-r--r-- | pkgs/misc/my-env/default.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/misc/my-env/default.nix b/pkgs/misc/my-env/default.nix index 1c0dc0cbfe9b..4b0336b30da9 100644 --- a/pkgs/misc/my-env/default.nix +++ b/pkgs/misc/my-env/default.nix @@ -131,7 +131,7 @@ mkDerivation { echo "\$tmp/script"; source "\$tmp/script"; fi - rm -fr "\$tmp" + ${pkgs.coreutils}/bin/rm -fr "\$tmp" ${extraCmds} nix_cleanup() { |