lol
1{stdenv, version}:
2
3{
4 inherit version;
5
6 name = "cargo-${version}";
7
8 postInstall = ''
9 rm "$out/lib/rustlib/components" \
10 "$out/lib/rustlib/install.log" \
11 "$out/lib/rustlib/rust-installer-version" \
12 "$out/lib/rustlib/uninstall.sh" \
13 "$out/lib/rustlib/manifest-cargo"
14 '';
15
16 platform = if stdenv.system == "i686-linux"
17 then "i686-unknown-linux-gnu"
18 else if stdenv.system == "x86_64-linux"
19 then "x86_64-unknown-linux-gnu"
20 else if stdenv.system == "i686-darwin"
21 then "i686-apple-darwin"
22 else if stdenv.system == "x86_64-darwin"
23 then "x86_64-apple-darwin"
24 else throw "no snapshot to bootstrap for this platform (missing platform url suffix)";
25
26 meta = with stdenv.lib; {
27 homepage = http://crates.io;
28 description = "Downloads your Rust project's dependencies and builds your project";
29 maintainers = with maintainers; [ wizeman ];
30 license = [ licenses.mit licenses.asl20 ];
31 platforms = platforms.linux;
32 };
33}