2015-01-08 09:38:20 +01:00
|
|
|
{stdenv, version}:
|
2014-09-14 02:14:48 +02:00
|
|
|
|
2015-01-08 09:38:20 +01:00
|
|
|
{
|
|
|
|
inherit version;
|
2014-09-14 02:14:48 +02: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 03:31:03 +01:00
|
|
|
else throw "no snapshot to bootstrap for this platform (missing platform url suffix)";
|
2014-09-14 02:14:48 +02:00
|
|
|
|
2015-01-08 09:38:20 +01:00
|
|
|
meta = with stdenv.lib; {
|
2014-09-14 02:14:48 +02:00
|
|
|
homepage = http://crates.io;
|
|
|
|
description = "Downloads your Rust project's dependencies and builds your project";
|
|
|
|
license = [ licenses.mit licenses.asl20 ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
2015-01-08 09:38:20 +01:00
|
|
|
|
|
|
|
name = "cargo-${version}";
|
2014-09-14 02:14:48 +02:00
|
|
|
}
|