Use $XDG_RUNTIME_DIR for temporary files
This commit is contained in:
parent
fde819f2e2
commit
3bea429ae8
8 changed files with 16 additions and 23 deletions
|
@ -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:\/\//) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue