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:15:47 +02:00
parent b993c2113c
commit d6093505cc
4 changed files with 114 additions and 54 deletions

View File

@@ -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 ];

View File

@@ -11,7 +11,7 @@ buildRustPackage rec {
sha256 = "0a768gvjry86l0xa5q0122iyq7zn2h9adfniglsgrbs4fan49xyn";
};
depsSha256 = "0x1rq012k04ci18w5fll56jn011f1yyprs38pb3r223bag94ivsy";
depsSha256 = "13rnxr5inrfnmg5mg2vap17fd2jp32g2a70pfi1sshi6vjr8kpap";
buildInputs = [ makeWrapper ];