aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJames Ottaway <jamesottaway@users.noreply.github.com>2021-01-29 13:55:18 +1000
committerGitHub <noreply@github.com>2021-01-29 13:55:18 +1000
commit991edaace57d50d571f4f4658ef2d52b94a07f2c (patch)
tree0244bd8ff92de1b8820843022216aa171aeea161 /src
parentb8f345b29a65669f4d6966ba3837fda2341c5ec2 (diff)
Shorten `mktemp` flag for macOS
Address `mktemp: illegal option -- -`.
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);