Browse Source

confirmed git-secrets is now working

nixos-19.03
Brandon Elam Barker 4 years ago
parent
commit
ee270fe647
  1. 2
      pkgs/applications/version-management/git-and-tools/default.nix
  2. 13
      pkgs/applications/version-management/git-and-tools/git-secrets/default.nix
  3. 2
      pkgs/top-level/all-packages.nix

2
pkgs/applications/version-management/git-and-tools/default.nix

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

13
pkgs/applications/version-management/git-and-tools/git-secrets/default.nix

@ -10,20 +10,25 @@ in stdenv.mkDerivation {
src = fetchFromGitHub {
inherit repo;
owner = "awslabs";
rev = "v${version}";
rev = "${version}";
sha256 = "14jsm4ks3k5d9iq3jr23829izw040pqpmv7dz8fhmvx6qz8fybzg";
};
buildInputs = [ makeWrapper ];
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 ]}"
mkdir $out/share
cp -r man $out/share
# TODO: see above note on rst2man.py
# mkdir $out/share
# cp -r man $out/share
'';
meta = {

2
pkgs/top-level/all-packages.nix

@ -15969,7 +15969,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;

Loading…
Cancel
Save