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
|
|
@ -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";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue