buildRustPackage: Get rid of /proc/self/cwd hack

This makes buildRustPackage portable to non-Linux platforms.

Additionally, now we also save the `Cargo.lock` file into the fetch output, so
that we don't have to run $cargoUpdateHook again just before building.
This commit is contained in:
Ricardo M. Correia
2015-04-23 20:22:19 +02:00
parent b993c2113c
commit d6093505cc
4 changed files with 114 additions and 54 deletions
@@ -23,7 +23,7 @@ buildRustPackage rec {
cargo update -p threadpool --precise 0.1.4
'';
depsSha256 = "12d2v4b85qabagrypvqiam2iybd4jwcg0sky0gqarfhjh2dhwfm6";
depsSha256 = "1gj3mnjj17h5p0r1jcm3m3pm3p3l1rbfdz3l7v1cykng78dsabnq";
buildInputs = [ file curl pkgconfig python openssl cmake zlib ];