nixpkgs/pkgs/development/interpreters/evcxr/default.nix
Ben Hamlin 8ae2212da3 evcxr: makeWrapper -> nativeBuildInputs and omit Jupyter kernel
The Jupyter kernel should be its own package. Omitting it and its dependencies here.
2019-05-03 10:06:43 -07:00

32 lines
925 B
Nix

{ cargo, fetchFromGitHub, makeWrapper, pkgconfig, rustPlatform, stdenv }:
rustPlatform.buildRustPackage rec {
name = "evcxr-${version}";
version = "0.3.3";
src = fetchFromGitHub {
owner = "google";
repo = "evcxr";
rev = "ae07ccf08723b7aec0de57d540822b89088ca036";
sha256 = "1apc93z9vvf6qks5x2pad45rnrj9kjl812rj78w5zmmizccp2fhf";
};
cargoSha256 = "0bd6yna8yyrqjv4w7qr2923nljbjjlbkyad6vjlgfp33yn2pz1iv";
cargoPatches = [ ./cargo-lock.patch ];
nativeBuildInputs = [ pkgconfig makeWrapper ];
buildInputs = [ cargo ];
postInstall = ''
wrapProgram $out/bin/evcxr --prefix PATH : ${cargo}/bin
rm $out/bin/testing_runtime
'';
meta = {
description = "An evaluation context for Rust";
homepage = "https://github.com/google/evcxr";
license = stdenv.lib.licenses.asl20;
maintainers = [ stdenv.lib.maintainers.protoben ];
platforms = stdenv.lib.platforms.all;
};
}