2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, docutils, makeWrapper
|
2020-04-24 23:36:52 +00:00
|
|
|
, gnupg, curl, rsync, coreutils
|
|
|
|
, gawk, gnused, gnugrep
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "git-remote-gcrypt";
|
2022-09-09 14:08:57 +00:00
|
|
|
version = "1.5";
|
2020-04-24 23:36:52 +00:00
|
|
|
rev = version;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
inherit rev;
|
|
|
|
owner = "spwhitton";
|
|
|
|
repo = "git-remote-gcrypt";
|
2022-09-09 14:08:57 +00:00
|
|
|
sha256 = "sha256-uy6s3YQwY/aZmQoW/qe1YrSlfNHyDTXBFxB6fPGiPNQ=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
outputs = [ "out" "man" ];
|
|
|
|
|
|
|
|
nativeBuildInputs = [ docutils makeWrapper ];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
prefix="$out" ./install.sh
|
|
|
|
wrapProgram "$out/bin/git-remote-gcrypt" \
|
2021-01-17 00:15:33 +00:00
|
|
|
--prefix PATH ":" "${lib.makeBinPath [ gnupg curl rsync coreutils
|
2020-04-24 23:36:52 +00:00
|
|
|
gawk gnused gnugrep ]}"
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://spwhitton.name/tech/code/git-remote-gcrypt";
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Git remote helper for GPG-encrypted remotes";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = with maintainers; [ ellis montag451 ];
|
|
|
|
platforms = platforms.unix;
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "git-remote-gcrypt";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|