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-09-26 20:34:59 +01:00
|
|
|
version = "0.3.1";
|
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-09-26 20:34:59 +01:00
|
|
|
sha256 = "0234a2507as242wlybg32f7nd27ffjs50r4p1p95j6vs5s8g413l";
|
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;
|
|
|
|
};
|
|
|
|
}
|