2019-09-16 23:46:26 +03:00
|
|
|
{ cargo, fetchFromGitHub, makeWrapper, pkgconfig, rustPlatform, stdenv, gcc, Security, cmake }:
|
2019-04-28 05:08:23 +03:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
2019-08-24 22:16:41 +03:00
|
|
|
pname = "evcxr";
|
2020-01-23 15:16:58 +03:00
|
|
|
version = "0.5.0";
|
2019-04-28 05:08:23 +03:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "google";
|
|
|
|
repo = "evcxr";
|
2020-01-23 15:16:58 +03:00
|
|
|
rev = "239e431c58d04c641da22af791e4d3e1b894365e";
|
|
|
|
sha256 = "0vkcis06gwsqfwvrl8xcf74mfcs6j77b9fhcz5rrh77mwl7ixsdc";
|
2019-04-28 05:08:23 +03:00
|
|
|
};
|
|
|
|
|
2020-02-16 06:49:00 +03:00
|
|
|
cargoSha256 = "0pamwqhw3sj4anqc1112l5cayhqzibdhqjc28apfrkf2m63cclzi";
|
2019-04-28 05:08:23 +03:00
|
|
|
|
2019-09-16 23:46:26 +03:00
|
|
|
nativeBuildInputs = [ pkgconfig makeWrapper cmake ];
|
|
|
|
buildInputs = stdenv.lib.optional stdenv.isDarwin Security;
|
2019-05-03 20:06:43 +03:00
|
|
|
postInstall = ''
|
2019-07-21 02:16:33 +03:00
|
|
|
wrapProgram $out/bin/evcxr --prefix PATH : ${stdenv.lib.makeBinPath [ cargo gcc ]}
|
2019-05-03 20:06:43 +03:00
|
|
|
rm $out/bin/testing_runtime
|
|
|
|
'';
|
2019-04-28 05:08:23 +03:00
|
|
|
|
2019-09-16 23:46:26 +03:00
|
|
|
meta = with stdenv.lib; {
|
2019-05-03 20:06:43 +03:00
|
|
|
description = "An evaluation context for Rust";
|
2019-04-28 05:08:23 +03:00
|
|
|
homepage = "https://github.com/google/evcxr";
|
2019-09-16 23:46:26 +03:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ protoben ma27 ];
|
|
|
|
platforms = platforms.all;
|
2019-04-28 05:08:23 +03:00
|
|
|
};
|
|
|
|
}
|