uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
41
pkgs/development/interpreters/evcxr/default.nix
Normal file
41
pkgs/development/interpreters/evcxr/default.nix
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
{ cargo, fetchFromGitHub, makeWrapper, pkg-config, rustPlatform, lib, stdenv
|
||||
, gcc, cmake, libiconv, CoreServices, Security }:
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "evcxr";
|
||||
version = "0.12.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "google";
|
||||
repo = "evcxr";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-sD/eykXoeJq43o3xyFx2VIoH+xZrMmb6vZKVt4CO7B4=";
|
||||
};
|
||||
|
||||
cargoSha256 = "sha256-eySdhzavm9NGv2xjgdq/C2iv6lxdulhgYNs9ehnSzKQ=";
|
||||
|
||||
RUST_SRC_PATH = "${rustPlatform.rustLibSrc}";
|
||||
|
||||
nativeBuildInputs = [ pkg-config makeWrapper cmake ];
|
||||
buildInputs = lib.optionals stdenv.isDarwin
|
||||
[ libiconv CoreServices Security ];
|
||||
|
||||
postInstall = let
|
||||
wrap = exe: ''
|
||||
wrapProgram $out/bin/${exe} \
|
||||
--prefix PATH : ${lib.makeBinPath [ cargo gcc ]} \
|
||||
--set-default RUST_SRC_PATH "$RUST_SRC_PATH"
|
||||
'';
|
||||
in ''
|
||||
${wrap "evcxr"}
|
||||
${wrap "evcxr_jupyter"}
|
||||
rm $out/bin/testing_runtime
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "An evaluation context for Rust";
|
||||
homepage = "https://github.com/google/evcxr";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ protoben ma27 ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue