2019-08-24 19:16:41 +00:00
|
|
|
{ cargo, fetchFromGitHub, makeWrapper, pkgconfig, rustPlatform, stdenv, gcc, Security, zeromq }:
|
2019-04-28 02:08:23 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
2019-08-24 19:16:41 +00:00
|
|
|
pname = "evcxr";
|
2019-08-28 23:51:25 +00:00
|
|
|
version = "0.4.4";
|
2019-04-28 02:08:23 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "google";
|
|
|
|
repo = "evcxr";
|
2019-08-24 19:16:41 +00:00
|
|
|
rev = "v${version}";
|
2019-08-28 23:51:25 +00:00
|
|
|
sha256 = "1j2vsqgljqw7415rgjlnc1w3nmr9ghizx2mncbm1yipwj8xbrmf6";
|
2019-04-28 02:08:23 +00:00
|
|
|
};
|
|
|
|
|
2019-08-28 23:51:25 +00:00
|
|
|
cargoSha256 = "0ckxpmi547y7q4w287znimpxgaj3mjkgmkcs2n9cp4m8cw143hly";
|
2019-04-28 02:08:23 +00:00
|
|
|
|
2019-05-03 17:06:43 +00:00
|
|
|
nativeBuildInputs = [ pkgconfig makeWrapper ];
|
2019-08-24 19:16:41 +00:00
|
|
|
buildInputs = [ zeromq ] ++ stdenv.lib.optional stdenv.isDarwin Security;
|
2019-05-03 17:06:43 +00:00
|
|
|
postInstall = ''
|
2019-07-20 23:16:33 +00:00
|
|
|
wrapProgram $out/bin/evcxr --prefix PATH : ${stdenv.lib.makeBinPath [ cargo gcc ]}
|
2019-05-03 17:06:43 +00:00
|
|
|
rm $out/bin/testing_runtime
|
|
|
|
'';
|
2019-04-28 02:08:23 +00:00
|
|
|
|
|
|
|
meta = {
|
2019-05-03 17:06:43 +00:00
|
|
|
description = "An evaluation context for Rust";
|
2019-04-28 02:08:23 +00:00
|
|
|
homepage = "https://github.com/google/evcxr";
|
|
|
|
license = stdenv.lib.licenses.asl20;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.protoben ];
|
|
|
|
platforms = stdenv.lib.platforms.all;
|
|
|
|
};
|
|
|
|
}
|