Merge pull request #39990 from bbarker/git-secrets

Add package: git-secrets
This commit is contained in:
Matthew Justin Bauer 2018-05-05 00:28:02 -05:00 committed by GitHub
commit 78a71c8d3e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 43 additions and 1 deletions

View File

@ -89,6 +89,8 @@ rec {
git-secret = callPackage ./git-secret { };
git-secrets = callPackage ./git-secrets { };
git-stree = callPackage ./git-stree { };
git2cl = callPackage ./git2cl { };

View File

@ -0,0 +1,40 @@
{ stdenv, lib, fetchFromGitHub, makeWrapper, git }:
let
version = "1.2.1";
repo = "git-secrets";
in stdenv.mkDerivation {
name = "${repo}-${version}";
src = fetchFromGitHub {
inherit repo;
owner = "awslabs";
rev = "${version}";
sha256 = "14jsm4ks3k5d9iq3jr23829izw040pqpmv7dz8fhmvx6qz8fybzg";
};
buildInputs = [ makeWrapper git];
# buildPhase = ''
# make man # TODO: need rst2man.py
# '';
installPhase = ''
install -D git-secrets $out/bin/git-secrets
wrapProgram $out/bin/git-secrets \
--prefix PATH : "${lib.makeBinPath [ git ]}"
# TODO: see above note on rst2man.py
# mkdir $out/share
# cp -r man $out/share
'';
meta = {
description = "Prevents you from committing passwords and other sensitive information to a git repository";
homepage = https://github.com/awslabs/git-secretshttps://github.com/awslabs/git-secrets;
license = stdenv.lib.licenses.asl20;
platforms = stdenv.lib.platforms.all;
};
}

View File

@ -15982,7 +15982,7 @@ with pkgs;
gitAndTools = recurseIntoAttrs (callPackage ../applications/version-management/git-and-tools {});
inherit (gitAndTools) git gitFull gitSVN git-cola svn2git git-radar git-secret transcrypt git-crypt;
inherit (gitAndTools) git gitFull gitSVN git-cola svn2git git-radar git-secret git-secrets transcrypt git-crypt;
gitMinimal = git.override {
withManual = false;