We do not use a "plugin system" for Git addons anymore, and therefore this directory is no longer useful. Indeed that directory is way more confusing, given that it includes more than mere Git addons, going from Bitbucket server command-line tools to complete rewrites of Git in exotic programming languages. Also, without this directory, the mental load of decision-making reduces a lot. When anyone is interested in including a new git-related tool, just put it into pkgs/applications/version-management, without apologies.
33 lines
836 B
Nix
33 lines
836 B
Nix
{ 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;
|
|
};
|
|
}
|