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:
@@ -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 ];
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ buildRustPackage rec {
|
||||
sha256 = "0a768gvjry86l0xa5q0122iyq7zn2h9adfniglsgrbs4fan49xyn";
|
||||
};
|
||||
|
||||
depsSha256 = "0x1rq012k04ci18w5fll56jn011f1yyprs38pb3r223bag94ivsy";
|
||||
depsSha256 = "13rnxr5inrfnmg5mg2vap17fd2jp32g2a70pfi1sshi6vjr8kpap";
|
||||
|
||||
buildInputs = [ makeWrapper ];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user