@@ -0,0 +1,40 @@
1+{ stdenv, lib, fetchFromGitHub, makeWrapper, git }:
2+
3+let
4+ version = "1.2.1";
5+ repo = "git-secrets";
6+
7+in stdenv.mkDerivation {
8+ name = "${repo}-${version}";
9+
10+ src = fetchFromGitHub {
11+ inherit repo;
12+ owner = "awslabs";
13+ rev = "${version}";
14+ sha256 = "14jsm4ks3k5d9iq3jr23829izw040pqpmv7dz8fhmvx6qz8fybzg";
15+ };
16+
17+ buildInputs = [ makeWrapper git];
18+
19+ # buildPhase = ''
20+ # make man # TODO: need rst2man.py
21+ # '';
22+
23+ installPhase = ''
24+ install -D git-secrets $out/bin/git-secrets
25+
26+ wrapProgram $out/bin/git-secrets \
27+ --prefix PATH : "${lib.makeBinPath [ git ]}"
28+
29+ # TODO: see above note on rst2man.py
30+ # mkdir $out/share
31+ # cp -r man $out/share
32+ '';
33+
34+ meta = {
35+ description = "Prevents you from committing passwords and other sensitive information to a git repository";
36+ homepage = https://github.com/awslabs/git-secretshttps://github.com/awslabs/git-secrets;
37+ license = stdenv.lib.licenses.asl20;
38+ platforms = stdenv.lib.platforms.all;
39+ };
40+}