diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-08-13T21·12+0200 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-08-13T21·12+0200 |
commit | 3bea429ae8190565978104db3dbbb5e1a53fc018 (patch) | |
tree | 480747e11f2af030700075e2ad6c6677cdc2f4f1 /scripts/nix-build.in | |
parent | fde819f2e22e0fb84dc6d8fc4602a00577137d0a (diff) |
Use $XDG_RUNTIME_DIR for temporary files
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"; |