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