nixpkgs/pkgs
Anthony Cowley d96893647d cc-wrapper: fix on darwin
The ld-wrapper.sh script calls `readlink` in some circumstances. We need
to ensure that this is the `readlink` from the `coreutils` package so
that flag support is as expected.

This is accomplished by explicitly setting PATH at the top of each shell
script.

Without doing this, the following happens with a trivial `main.c`:

```
nix-env -f "<nixpkgs>" -iA pkgs.clang
$ clang main.c -L /nix/../nix/store/2ankvagznq062x1gifpxwkk7fp3xwy63-xnu-2422.115.4/Library -o a.out
readlink: illegal option -- f
usage: readlink [-n] [file ...]
```

The key element is the `..` in the path supplied to the linker via a
`-L` flag. With this patch, the above invocation works correctly on
darwin, whose native `/usr/bin/readlink` does not support the `-f` flag.

The explicit path also ensures that the `grep` called by `cc-wrapper.sh`
is the one from Nix.

Fixes #6447
2016-01-19 17:47:11 -05:00
..
applications fuze: remove dead package 2016-01-19 21:36:23 +01:00
build-support cc-wrapper: fix on darwin 2016-01-19 17:47:11 -05:00
data geolite-legacy 2016-01-11 -> 2016-01-18 2016-01-18 15:22:40 +01:00
desktops gnome3: 3.18.1 -> 3.18.2 2016-01-19 11:32:06 +01:00
development Merge pull request #12473 from gleber/update-erlang-hex-packages 2016-01-19 22:18:32 +01:00
games zeroad: do not build on Hydra 2016-01-19 12:16:18 +01:00
misc vimPlugins.youcompleteme: enable on unix 2016-01-19 22:41:31 +01:00
os-specific zfs: 0.6.5.3 -> 0.6.5.4 2016-01-19 16:34:14 +01:00
servers Merge branch 'master' into staging 2016-01-18 09:48:49 +01:00
shells fish: fix merge conflict 2016-01-05 23:32:29 +01:00
stdenv cc-wrapper: fix on darwin 2016-01-19 17:47:11 -05:00
test
tools debian_devscripts: 2.15.8 -> 2.15.10 2016-01-19 21:36:23 +01:00
top-level emacs-packages: update diminish 0.44 -> 0.45 2016-01-19 14:16:35 -08:00