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
46
pkgs/development/compilers/zz/default.nix
Normal file
46
pkgs/development/compilers/zz/default.nix
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
{ lib, rustPlatform, fetchFromGitHub, makeWrapper, z3, pkgsHostTarget }:
|
||||
|
||||
let
|
||||
runtimeDeps = [
|
||||
z3
|
||||
pkgsHostTarget.targetPackages.stdenv.cc
|
||||
];
|
||||
in
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "zz";
|
||||
version = "unstable-2021-05-04";
|
||||
|
||||
# when updating, choose commit of the latest build on http://bin.zetz.it/
|
||||
src = fetchFromGitHub {
|
||||
owner = "zetzit";
|
||||
repo = "zz";
|
||||
rev = "18020b10b933cfe2fc7f2256b71e646889f9b1d2";
|
||||
sha256 = "01nlyyk1qxk76dq2hw3wpbjwkh27zzp6mpczjnxdpv6rxs7mc825";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
|
||||
cargoSha256 = "080rd8x4jsssnx4il80xcb81iw8pjcm70zckpa1hcijkw9104dgs";
|
||||
|
||||
postPatch = ''
|
||||
# remove search path entry which would reference /build
|
||||
sed -i '/env!("CARGO_MANIFEST_DIR")/d' src/lib.rs
|
||||
'';
|
||||
|
||||
postInstall = ''
|
||||
mkdir -p "$out/share/zz"
|
||||
cp -r modules "$out/share/zz/"
|
||||
|
||||
wrapProgram $out/bin/zz \
|
||||
--prefix PATH ":" "${lib.makeBinPath runtimeDeps}" \
|
||||
--suffix ZZ_MODULE_PATHS ":" "$out/share/zz/modules"
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "ZetZ a zymbolic verifier and tranzpiler to bare metal C";
|
||||
homepage = "https://github.com/zetzit/zz";
|
||||
license = licenses.mit;
|
||||
maintainers = [ maintainers.marsam ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue