nixpkgs/pkgs/development/tools
Ricardo M. Correia 2b694c237b cargo, cargoSnapshot: add rustc runtime dependency
It turns out that cargo implicitly depends on rustc at runtime: even
`cargo help` will fail if rustc is not in the PATH.

This means that we need to wrap the cargo binary to add rustc to PATH.
However, I have opted into doing something slightly unusual: instead of
tying down a specific cargo to use a specific rustc (i.e., wrap cargo so
that "${rustc}/bin" is prefixed into PATH), instead I'm adding the rustc
used to build cargo as a fallback rust compiler (i.e., wrap cargo so
that "${rustc}/bin" is suffixed into PATH). This means that cargo will
prefer to use a rust compiler that is in the default path, but fallback
into the one used to build cargo only if there wasn't any rust compiler
in the default path.

The reason I'm doing this is that otherwise it could cause unexpected
effects. For example, if you had a build environment with the
rustcMaster and cargo derivations, you would expect cargo to use
rustcMaster to compile your project (since rustcMaster would be the only
compiler available in $PATH), but this wouldn't happen if we tied down
cargo to use the rustc that was used to compile it (because the default
cargo derivation gets compiled with the stable rust compiler).

That said, I have slightly modified makeRustPlatform so that a rust
platform will always use the rust compiler that was used to build cargo,
because this prevents mistakenly depending on two different versions of
the rust compiler (stable and unstable) in the same rust platform,
something which is usually undesirable.

Fixes #11053
2015-11-18 02:41:45 +01:00
..
activator
alloy Replace 'with plaforms; platform' with 'platforms.platform' 2015-11-17 21:30:43 +01:00
analysis Replace 'with plaforms; platform' with 'platforms.platform' 2015-11-17 21:30:43 +01:00
apktool
boomerang
boost-build
build-managers cargo, cargoSnapshot: add rustc runtime dependency 2015-11-18 02:41:45 +01:00
casperjs
cdecl
chefdk
compass
continuous-integration jenkins: 1.637 -> 1.638 (important security fixes) 2015-11-12 13:40:09 +01:00
database
documentation darwin purity: doxygen 2015-11-02 14:37:10 -08:00
egg2nix
electron
github/github-release
gnulib
godep
grabserial
guile
haskell
heroku
java Replace 'with plaforms; platform' with 'platforms.platform' 2015-11-17 21:30:43 +01:00
jq jq: build with oniguruma for regex support 2015-11-07 13:54:45 -05:00
libsigrok
libsigrokdecode
literate-programming
misc Merge commit 'cb21b77' into master.upstream 2015-11-13 15:53:10 -08:00
neoload
node-webkit
ocaml
omniorb
packer
parse-cli-bin parse: init at 3.0.1 2015-11-09 04:22:34 -05:00
parsing lemon: init at 1.0 2015-09-18 03:46:06 +02:00
phantomjs
phantomjs2
profiling
pydb
quilt
remarshal influxdb: 0.8.3 -> 0.9.4, fix module 2015-11-16 14:22:08 +01:00
rhc
rtags
rucksack
rust
sassc
sauce-connect Replace 'with plaforms; platform' with 'platforms.platform' 2015-11-17 21:30:43 +01:00
selenium
sigrok-cli
slimerjs
sqsh
sslmate
thrust
toluapp
tradcpp
vagrant
watchman
winpdb
yuicompressor