aboutsummaryrefslogtreecommitdiff
path: root/scripts/nix-push.in
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2014-08-13 23:12:57 +0200
committerEelco Dolstra <eelco.dolstra@logicblox.com>2014-08-13 23:12:57 +0200
commit3bea429ae8190565978104db3dbbb5e1a53fc018 (patch)
tree480747e11f2af030700075e2ad6c6677cdc2f4f1 /scripts/nix-push.in
parentfde819f2e22e0fb84dc6d8fc4602a00577137d0a (diff)
Use $XDG_RUNTIME_DIR for temporary files
Diffstat (limited to 'scripts/nix-push.in')
-rwxr-xr-xscripts/nix-push.in4
1 files changed, 1 insertions, 3 deletions
diff --git a/scripts/nix-push.in b/scripts/nix-push.in
index bdd128a6f..1343099f1 100755
--- a/scripts/nix-push.in
+++ b/scripts/nix-push.in
@@ -2,7 +2,6 @@
use strict;
use File::Basename;
-use File::Temp qw(tempdir);
use File::Path qw(mkpath);
use File::stat;
use File::Copy;
@@ -12,8 +11,7 @@ use Nix::Manifest;
use Nix::Utils;
use Nix::Crypto;
-my $tmpDir = tempdir("nix-push.XXXXXX", CLEANUP => 1, TMPDIR => 1)
- or die "cannot create a temporary directory";
+my $tmpDir = mkTempDir("nix-push");
my $nixExpr = "$tmpDir/create-nars.nix";