2015-01-08 08:38:20 +00:00
|
|
|
{stdenv, version}:
|
2014-09-14 01:14:48 +01:00
|
|
|
|
2015-01-08 08:38:20 +00:00
|
|
|
{
|
|
|
|
inherit version;
|
2014-09-14 01:14:48 +01:00
|
|
|
|
2014-10-10 15:59:37 +01:00
|
|
|
name = "cargo-${version}";
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
rm "$out/lib/rustlib/components" \
|
|
|
|
"$out/lib/rustlib/install.log" \
|
|
|
|
"$out/lib/rustlib/rust-installer-version" \
|
|
|
|
"$out/lib/rustlib/uninstall.sh" \
|
|
|
|
"$out/lib/rustlib/manifest-cargo"
|
|
|
|
'';
|
|
|
|
|
2014-09-14 01:14:48 +01:00
|
|
|
platform = if stdenv.system == "i686-linux"
|
|
|
|
then "i686-unknown-linux-gnu"
|
|
|
|
else if stdenv.system == "x86_64-linux"
|
|
|
|
then "x86_64-unknown-linux-gnu"
|
|
|
|
else if stdenv.system == "i686-darwin"
|
|
|
|
then "i686-apple-darwin"
|
|
|
|
else if stdenv.system == "x86_64-darwin"
|
|
|
|
then "x86_64-apple-darwin"
|
2014-12-30 02:31:03 +00:00
|
|
|
else throw "no snapshot to bootstrap for this platform (missing platform url suffix)";
|
2014-09-14 01:14:48 +01:00
|
|
|
|
2015-01-08 08:38:20 +00:00
|
|
|
meta = with stdenv.lib; {
|
2014-09-14 01:14:48 +01:00
|
|
|
homepage = http://crates.io;
|
|
|
|
description = "Downloads your Rust project's dependencies and builds your project";
|
2015-05-19 17:38:51 +01:00
|
|
|
maintainers = with maintainers; [ wizeman ];
|
2014-09-14 01:14:48 +01:00
|
|
|
license = [ licenses.mit licenses.asl20 ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|