2018-12-20 10:09:42 +00:00
|
|
|
{ stdenv, lib, fetchFromGitHub, makeWrapper, git, gnupg, gawk }:
|
2017-11-10 23:12:41 +00:00
|
|
|
|
2022-03-07 11:37:20 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "git-secret";
|
2022-06-26 00:32:38 +00:00
|
|
|
version = "0.5.0";
|
2017-11-10 23:12:41 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2022-03-07 11:37:20 +00:00
|
|
|
repo = "git-secret";
|
2017-11-10 23:12:41 +00:00
|
|
|
owner = "sobolevn";
|
|
|
|
rev = "v${version}";
|
2022-06-26 00:32:38 +00:00
|
|
|
sha256 = "sha256-Vdlv3H99BZcT1O66ZCpq5olENOaUSubx58B1PQ/OlMU=";
|
2017-11-10 23:12:41 +00:00
|
|
|
};
|
|
|
|
|
2021-02-07 09:17:39 +00:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
2017-11-10 23:12:41 +00:00
|
|
|
|
|
|
|
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";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://git-secret.io";
|
2021-01-15 13:21:58 +00:00
|
|
|
license = lib.licenses.mit;
|
|
|
|
maintainers = [ lib.maintainers.lo1tuma ];
|
|
|
|
platforms = lib.platforms.all;
|
2017-11-10 23:12:41 +00:00
|
|
|
};
|
|
|
|
}
|