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-prefetch-url.in | |
parent | fde819f2e22e0fb84dc6d8fc4602a00577137d0a (diff) |
Use $XDG_RUNTIME_DIR for temporary files
Diffstat (limited to 'scripts/nix-prefetch-url.in')
-rwxr-xr-x | scripts/nix-prefetch-url.in | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/scripts/nix-prefetch-url.in b/scripts/nix-prefetch-url.in index bcd9197bcff1..24753bd5b9bd 100755 --- a/scripts/nix-prefetch-url.in +++ b/scripts/nix-prefetch-url.in @@ -2,7 +2,6 @@ use strict; use File::Basename; -use File::Temp qw(tempdir); use File::stat; use Nix::Store; use Nix::Config; @@ -38,8 +37,7 @@ EOF exit 1; } -my $tmpDir = tempdir("nix-prefetch-url.XXXXXX", CLEANUP => 1, TMPDIR => 1) - or die "cannot create a temporary directory"; +my $tmpDir = mkTempDir("nix-prefetch-url"); # Hack to support the mirror:// scheme from Nixpkgs. if ($url =~ /^mirror:\/\//) { |