aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDomen Kožar <domen@dev.si>2021-01-29 12:23:17 +0000
committerGitHub <noreply@github.com>2021-01-29 12:23:17 +0000
commitab31513969249350352ea380ed6df2f2d4ffcc85 (patch)
tree0244bd8ff92de1b8820843022216aa171aeea161 /src
parentb8f345b29a65669f4d6966ba3837fda2341c5ec2 (diff)
parent991edaace57d50d571f4f4658ef2d52b94a07f2c (diff)
Merge pull request #4491 from jamesottaway/patch-1
Shorten `mktemp` flag for macOS
Diffstat (limited to 'src')
-rw-r--r--src/nix/develop.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nix/develop.cc b/src/nix/develop.cc
index 578258394..3c44fdb0e 100644
--- a/src/nix/develop.cc
+++ b/src/nix/develop.cc
@@ -239,7 +239,7 @@ struct Common : InstallableCommand, MixProfile
out << buildEnvironment.bashFunctions << "\n";
- out << "export NIX_BUILD_TOP=\"$(mktemp -d --tmpdir nix-shell.XXXXXX)\"\n";
+ out << "export NIX_BUILD_TOP=\"$(mktemp -d -t nix-shell.XXXXXX)\"\n";
for (auto & i : {"TMP", "TMPDIR", "TEMP", "TEMPDIR"})
out << fmt("export %s=\"$NIX_BUILD_TOP\"\n", i);