Skip to content
Unverified Commit 5e7a1cf9 authored by aszlig's avatar aszlig
Browse files

build-support: Fix nix-prefetch-* on OS X.

Fixes a regression on OS X introduced by f83af95f

.

Don't use --tmpdir for mktemp, because that flag doesn't exist on OS X.
However, using -t is deprecated in GNU coreutils, so as suggested by
@ip1981 we're now using parameter expansion on ${TMPDIR:-/tmp} to
provide /tmp as a fallback if TMPDIR is not set and use it instead.

Also use this approach for nix-prefetch-cvs now in order to stay
consistent.

Reported-by: default avatarVladimir Kirillov <proger@wilab.org.ua>
Tested-by: default avatarIgor Pashev <pashev.igor@gmail.com>
Signed-off-by: default avataraszlig <aszlig@redmoonstudios.org>
parent df300667
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment