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
|
|
@ -0,0 +1,32 @@
|
|||
{ lib, stdenv, fetchFromGitHub, makeWrapper, git, coreutils }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "git-secrets";
|
||||
version = "1.3.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "awslabs";
|
||||
repo = "git-secrets";
|
||||
rev = version;
|
||||
sha256 = "10lnxg0q855zi3d6804ivlrn6dc817kilzdh05mmz8a0ccvm2qc7";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
|
||||
dontBuild = true;
|
||||
|
||||
installPhase = ''
|
||||
install -m755 -Dt $out/bin git-secrets
|
||||
install -m444 -Dt $out/share/man/man1 git-secrets.1
|
||||
|
||||
wrapProgram $out/bin/git-secrets \
|
||||
--prefix PATH : "${lib.makeBinPath [ git coreutils ]}"
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Prevents you from committing secrets and credentials into git repositories";
|
||||
homepage = "https://github.com/awslabs/git-secrets";
|
||||
license = licenses.asl20;
|
||||
platforms = platforms.all;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue