1 { lib, stdenv, fetchFromGitHub, makeWrapper, git, coreutils }:
3 stdenv.mkDerivation rec {
7 src = fetchFromGitHub {
11 sha256 = "10lnxg0q855zi3d6804ivlrn6dc817kilzdh05mmz8a0ccvm2qc7";
14 nativeBuildInputs = [ makeWrapper ];
19 install -m755 -Dt $out/bin git-secrets
20 install -m444 -Dt $out/share/man/man1 git-secrets.1
22 wrapProgram $out/bin/git-secrets \
23 --prefix PATH : "${lib.makeBinPath [ git coreutils ]}"
27 description = "Prevents you from committing secrets and credentials into git repositories";
28 homepage = "https://github.com/awslabs/git-secrets";
29 license = licenses.asl20;
30 platforms = platforms.all;