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>
This commit is contained in:
aszlig 2014-11-25 02:01:22 +01:00
parent ca6d86b7fb
commit 83c2fcada4
No known key found for this signature in database
GPG key ID: D0EBD0EC8C2DC961

View file

@ -131,7 +131,7 @@ mkDerivation {
echo "\$tmp/script";
source "\$tmp/script";
fi
rm -fr "\$tmp"
${pkgs.coreutils}/bin/rm -fr "\$tmp"
${extraCmds}
nix_cleanup() {