git.iko.soy/typeable/nixpkgs
on master help sign in
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>

commit83c2fcada472fd8594fd51a4677fb2c60b1c26e8 authoraszlig <aszlig@redmoonstudios.org> dateTue 25 Nov 2014, 02:01 (12 years ago) parentca6d86b
1 file changed+1−1
pkgs/misc/my-env/default.nix+1−1
pkgs/misc/my-env/default.nix+1−1
@@ -131,7 +131,7 @@ mkDerivation {
131131 echo "\$tmp/script";
132132 source "\$tmp/script";
133133 fi
134− rm -fr "\$tmp"
134+ ${pkgs.coreutils}/bin/rm -fr "\$tmp"
135135 ${extraCmds}
136136
137137 nix_cleanup() {