evcxr: fix hash and cc access

The `cargoSha256` hashes across the sourcetree had to be altered after
the last `cargo-vendor` bump. Also ensured that `cc` is available in
`$PATH` to avoid startup errors in the REPL.
This commit is contained in:
Maximilian Bosch 2019-07-21 01:16:33 +02:00
parent 8ae2212da3
commit c4323c200f
No known key found for this signature in database
GPG Key ID: 091DBF4D1FC46B8E

View File

@ -1,4 +1,4 @@
{ cargo, fetchFromGitHub, makeWrapper, pkgconfig, rustPlatform, stdenv }: { cargo, fetchFromGitHub, makeWrapper, pkgconfig, rustPlatform, stdenv, gcc }:
rustPlatform.buildRustPackage rec { rustPlatform.buildRustPackage rec {
name = "evcxr-${version}"; name = "evcxr-${version}";
@ -11,13 +11,13 @@ rustPlatform.buildRustPackage rec {
sha256 = "1apc93z9vvf6qks5x2pad45rnrj9kjl812rj78w5zmmizccp2fhf"; sha256 = "1apc93z9vvf6qks5x2pad45rnrj9kjl812rj78w5zmmizccp2fhf";
}; };
cargoSha256 = "0bd6yna8yyrqjv4w7qr2923nljbjjlbkyad6vjlgfp33yn2pz1iv"; cargoSha256 = "153pxqj4jhlbacr7607q9yfw6h96ns5igbvssis8j3gn0xp6ssg6";
cargoPatches = [ ./cargo-lock.patch ]; cargoPatches = [ ./cargo-lock.patch ];
nativeBuildInputs = [ pkgconfig makeWrapper ]; nativeBuildInputs = [ pkgconfig makeWrapper ];
buildInputs = [ cargo ]; buildInputs = [ cargo ];
postInstall = '' postInstall = ''
wrapProgram $out/bin/evcxr --prefix PATH : ${cargo}/bin wrapProgram $out/bin/evcxr --prefix PATH : ${stdenv.lib.makeBinPath [ cargo gcc ]}
rm $out/bin/testing_runtime rm $out/bin/testing_runtime
''; '';