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