about summary refs log tree commit diff
path: root/scripts/nix-install-package.in
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2014-08-13T21·12+0200
committerEelco Dolstra <eelco.dolstra@logicblox.com>2014-08-13T21·12+0200
commit3bea429ae8190565978104db3dbbb5e1a53fc018 (patch)
tree480747e11f2af030700075e2ad6c6677cdc2f4f1 /scripts/nix-install-package.in
parentfde819f2e22e0fb84dc6d8fc4602a00577137d0a (diff)
Use $XDG_RUNTIME_DIR for temporary files
Diffstat (limited to 'scripts/nix-install-package.in')
-rwxr-xr-xscripts/nix-install-package.in4
1 files changed, 1 insertions, 3 deletions
diff --git a/scripts/nix-install-package.in b/scripts/nix-install-package.in
index 9414541d1fbc..a3187c72169b 100755
--- a/scripts/nix-install-package.in
+++ b/scripts/nix-install-package.in
@@ -1,7 +1,6 @@
 #! @perl@ -w @perlFlags@
 
 use strict;
-use File::Temp qw(tempdir);
 use Nix::Config;
 use Nix::Utils;
 
@@ -50,8 +49,7 @@ if ($interactive && !defined $ENV{"NIX_HAVE_TERMINAL"}) {
 }
 
 
-my $tmpDir = tempdir("nix-install-package.XXXXXX", CLEANUP => 1, TMPDIR => 1)
-    or die "cannot create a temporary directory";
+my $tmpDir = mkTempDir("nix-install-package");
 
 
 sub barf {