1{ lib, stdenv, fetchFromGitHub, docutils, makeWrapper
2, gnupg, curl, rsync, coreutils
3, gawk, gnused, gnugrep
4}:
5
6stdenv.mkDerivation rec {
7 pname = "git-remote-gcrypt";
8 version = "1.5";
9 rev = version;
10
11 src = fetchFromGitHub {
12 inherit rev;
13 owner = "spwhitton";
14 repo = "git-remote-gcrypt";
15 sha256 = "sha256-uy6s3YQwY/aZmQoW/qe1YrSlfNHyDTXBFxB6fPGiPNQ=";
16 };
17
18 outputs = [ "out" "man" ];
19
20 nativeBuildInputs = [ docutils makeWrapper ];
21
22 installPhase = ''
23 prefix="$out" ./install.sh
24 wrapProgram "$out/bin/git-remote-gcrypt" \
25 --prefix PATH ":" "${lib.makeBinPath [ gnupg curl rsync coreutils
26 gawk gnused gnugrep ]}"
27 '';
28
29 meta = with lib; {
30 homepage = "https://spwhitton.name/tech/code/git-remote-gcrypt";
31 description = "A git remote helper for GPG-encrypted remotes";
32 license = licenses.gpl3;
33 maintainers = with maintainers; [ ellis montag451 ];
34 platforms = platforms.unix;
35 };
36}