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
45
pkgs/development/tools/rust/cargo-crev/default.nix
Normal file
45
pkgs/development/tools/rust/cargo-crev/default.nix
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
{ lib, stdenv
|
||||
, fetchFromGitHub
|
||||
, rustPlatform
|
||||
, perl
|
||||
, pkg-config
|
||||
, SystemConfiguration
|
||||
, Security
|
||||
, curl
|
||||
, libiconv
|
||||
, openssl
|
||||
, git
|
||||
}:
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "cargo-crev";
|
||||
version = "0.23.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "crev-dev";
|
||||
repo = "cargo-crev";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-XzjZEVyPVn+7VrjG4QsqVBFmuGC1TWTWLEoqFcwQhaI=";
|
||||
};
|
||||
|
||||
cargoSha256 = "sha256-p87ZnOxaF9ytSUxp0P3QE3K1/jo7hz/N7BH1f2Lc0I0=";
|
||||
|
||||
preCheck = ''
|
||||
export HOME=$(mktemp -d)
|
||||
git config --global user.name "Nixpkgs Test"
|
||||
git config --global user.email "nobody@example.com"
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [ perl pkg-config ];
|
||||
|
||||
buildInputs = [ openssl ] ++ lib.optionals stdenv.isDarwin [ SystemConfiguration Security libiconv curl ];
|
||||
|
||||
checkInputs = [ git ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "A cryptographically verifiable code review system for the cargo (Rust) package manager";
|
||||
homepage = "https://github.com/crev-dev/cargo-crev";
|
||||
license = with licenses; [ asl20 mit mpl20 ];
|
||||
maintainers = with maintainers; [ b4dm4n ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue