1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs synced 2024-10-19 03:47:13 -04:00
Nix Packages collection & NixOS
Find a file
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
doc meta.xml: fixed small omission 2014-08-24 16:36:46 +02:00
lib Manual: Handle XML files in subdirectories 2014-08-25 14:33:33 +02:00
maintainers/scripts
nixos Some pkgs.lib -> lib fixes 2014-08-25 14:40:40 +02:00
pkgs build-support: Use mktemp -d in nix-prefetch-*. 2014-08-25 15:28:55 +02:00
.gitignore
.version
COPYING
default.nix
README.md

Nixpkgs is a collection of packages for Nix package manager. Nixpkgs also includes NixOS linux distribution source code.