buildRustPackage: Don't hardcode registry index hash

Instead, discover it automatically when building the package.

This makes `buildRustPackage` more future-proof with respect to changes
in how `cargo` generates the hash.

Also, it fixes broken builds in i686 because apparently, cargo generates
a different registry index hash in this architecture (compared to
x86-64).
This commit is contained in:
Ricardo M. Correia
2015-05-19 19:02:38 +02:00
parent de322b48b7
commit 9b752fd0e1
4 changed files with 24 additions and 19 deletions
@@ -15,7 +15,7 @@ buildRustPackage rec {
leaveDotGit = true;
};
depsSha256 = "0s9f00kg7q9dxd8g98k3z4qv404p9ra73l1bzxs6qzk54qhg44dp";
depsSha256 = "1b0mpdxmp7inkg59n2phjwzpz5gx22wqg9rfd1s01a5ylara37jw";
buildInputs = [ file curl pkgconfig python openssl cmake zlib ];