diff options
Diffstat (limited to 'scripts/nix-build.in')
-rwxr-xr-x | scripts/nix-build.in | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/scripts/nix-build.in b/scripts/nix-build.in index 74307a5baf1c..cf7efa891949 100755 --- a/scripts/nix-build.in +++ b/scripts/nix-build.in @@ -4,7 +4,6 @@ use strict; use Nix::Config; use Nix::Store; use Nix::Utils; -use File::Temp qw(tempdir); my $dryRun = 0; @@ -25,8 +24,7 @@ my @envExclude = (); my $myName = $runEnv ? "nix-shell" : "nix-build"; -my $tmpDir = tempdir("$myName.XXXXXX", CLEANUP => 1, TMPDIR => 1) - or die "cannot create a temporary directory"; +my $tmpDir = mkTempDir($myName); my $outLink = "./result"; my $drvLink = "$tmpDir/derivation"; |