nixpkgs/pkgs/applications/version-management/git-and-tools/git-secret/default.nix
Mathias Schreck b627615602 git-secret: init at 0.2.2 (#31486)
* Add lo1tuma to maintainers

* git-secret: init at 0.2.2

* gitAndTools.git-secret: man page in correct directory
2017-11-10 23:12:41 +00:00

36 lines
858 B
Nix

{ stdenv, lib, fetchFromGitHub, makeWrapper, git, gnupg }:
let
version = "0.2.2";
repo = "git-secret";
in stdenv.mkDerivation {
name = "${repo}-${version}";
src = fetchFromGitHub {
inherit repo;
owner = "sobolevn";
rev = "v${version}";
sha256 = "0vn9jibp97z7kc828wka1k0d7a9wx4skd6cnqy60kagfc00l0bzh";
};
buildInputs = [ makeWrapper ];
installPhase = ''
install -D git-secret $out/bin/git-secret
wrapProgram $out/bin/git-secret \
--prefix PATH : "${lib.makeBinPath [ git gnupg ]}"
mkdir $out/share
cp -r man $out/share
'';
meta = {
description = "A bash-tool to store your private data inside a git repository";
homepage = http://git-secret.io;
license = stdenv.lib.licenses.mit;
maintainers = [ stdenv.lib.maintainers.lo1tuma ];
platforms = stdenv.lib.platforms.all;
};
}