1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs synced 2024-10-19 03:47:13 -04:00
nixpkgs/pkgs/build-support
aszlig f83af95f8a
build-support: Use mktemp -d in nix-prefetch-*.
Instead of relying on $$ to not collide with an existing path.

Quoting the Bash manual about $$:

> Expands to the process ID of the shell. In a () subshell, it expands
> to the process ID of the current shell, not the subshell.

So, this is different from $BASHPID:

> Expands to the process ID of the current bash process. This differs
> from $$ under certain circumstances, such as subshells that do not
> require bash to be re-initialized.

But even $BASHPID is prone to race conditions if the process IDs wrap
around, so to be on the safe side, we're using mktemp here.

Closes #3784.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
2014-08-25 15:28:55 +02:00
..
build-fhs-chrootenv
buildenv
builder-defs
cabal cabal: enable multi-threaded builds with GHC 7.8.x or later 2014-08-17 00:20:12 +02:00
clang-wrapper
dotnetenv
fetchbower
fetchbzr build-support: Use mktemp -d in nix-prefetch-*. 2014-08-25 15:28:55 +02:00
fetchcvs
fetchdarcs
fetchfile
fetchgit build-support: Use mktemp -d in nix-prefetch-*. 2014-08-25 15:28:55 +02:00
fetchgitrevision
fetchhg build-support: Use mktemp -d in nix-prefetch-*. 2014-08-25 15:28:55 +02:00
fetchmtn
fetchpatch
fetchsvn build-support: Use mktemp -d in nix-prefetch-*. 2014-08-25 15:28:55 +02:00
fetchsvnrevision
fetchsvnssh
fetchurl Add http mirror for postgresql. 2014-08-14 19:17:26 +02:00
fetchzip
gcc-cross-wrapper
gcc-wrapper
grsecurity
kdewrapper
kernel
libredirect
make-desktopitem
make-startupitem
make-symlinks
mono-dll-fixer
native-darwin-cctools-wrapper
nuke-references
release Make ant-build canonicalize the jars it produces so that we produce byte-for-byte identical jars (they normally contain timestamps and nondeterministic ordering of metadata lines) 2014-08-14 01:20:44 -04:00
setup-hooks
src-only
substitute
upstream-updater
vm debian: Update to 6.0.10 2014-08-10 15:17:00 +02:00
vsenv
build-pecl.nix
replace-dependency.nix
source-from-head-fun.nix
trivial-builders.nix