blob: a2f0c8ae41428c1ed56d71b2442c52ef2992739d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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-secrets;
license = stdenv.lib.licenses.asl20;
platforms = stdenv.lib.platforms.all;
};
}
|