2018-12-20 10:09:42 +00:00
|
|
|
{ stdenv, lib, fetchFromGitHub, makeWrapper, git, gnupg, gawk }:
|
2017-11-10 23:12:41 +00:00
|
|
|
|
|
|
|
let
|
2019-06-17 01:03:00 +01:00
|
|
|
version = "0.2.6";
|
2017-11-10 23:12:41 +00:00
|
|
|
repo = "git-secret";
|
|
|
|
|
|
|
|
in stdenv.mkDerivation {
|
|
|
|
name = "${repo}-${version}";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
inherit repo;
|
|
|
|
owner = "sobolevn";
|
|
|
|
rev = "v${version}";
|
2019-06-17 01:03:00 +01:00
|
|
|
sha256 = "09p4h8mdmk0nzcd1jh1i6n29klz38n5vqqwdyzjkygmr2xqka55b";
|
2017-11-10 23:12:41 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ makeWrapper ];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
install -D git-secret $out/bin/git-secret
|
|
|
|
|
|
|
|
wrapProgram $out/bin/git-secret \
|
2018-12-20 10:09:42 +00:00
|
|
|
--prefix PATH : "${lib.makeBinPath [ git gnupg gawk ]}"
|
2017-11-10 23:12:41 +00:00
|
|
|
|
|
|
|
mkdir $out/share
|
|
|
|
cp -r man $out/share
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A bash-tool to store your private data inside a git repository";
|
2019-04-22 09:14:28 +01:00
|
|
|
homepage = https://git-secret.io;
|
2017-11-10 23:12:41 +00:00
|
|
|
license = stdenv.lib.licenses.mit;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.lo1tuma ];
|
|
|
|
platforms = stdenv.lib.platforms.all;
|
|
|
|
};
|
|
|
|
}
|