2020-04-24 23:36:52 +00:00
|
|
|
{ stdenv, lib, fetchFromGitHub, makeWrapper, git, gnupg, gawk }:
|
|
|
|
|
2022-03-30 09:31:56 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "git-secret";
|
2022-07-14 12:49:19 +00:00
|
|
|
version = "0.5.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2022-03-30 09:31:56 +00:00
|
|
|
repo = "git-secret";
|
2020-04-24 23:36:52 +00:00
|
|
|
owner = "sobolevn";
|
|
|
|
rev = "v${version}";
|
2022-07-14 12:49:19 +00:00
|
|
|
sha256 = "sha256-Vdlv3H99BZcT1O66ZCpq5olENOaUSubx58B1PQ/OlMU=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-03-09 03:18:52 +00:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
install -D git-secret $out/bin/git-secret
|
|
|
|
|
|
|
|
wrapProgram $out/bin/git-secret \
|
|
|
|
--prefix PATH : "${lib.makeBinPath [ git gnupg gawk ]}"
|
|
|
|
|
|
|
|
mkdir $out/share
|
|
|
|
cp -r man $out/share
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Bash-tool to store your private data inside a git repository";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://git-secret.io";
|
2021-01-17 00:15:33 +00:00
|
|
|
license = lib.licenses.mit;
|
|
|
|
maintainers = [ lib.maintainers.lo1tuma ];
|
|
|
|
platforms = lib.platforms.all;
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "git-secret";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|