Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / applications / version-management / git-remote-gcrypt / default.nix
blob8f3155ce0546b52040bb1210c8846b2ca7e81ece
1 { lib, stdenv, fetchFromGitHub, docutils, makeWrapper
2 , gnupg, curl, rsync, coreutils
3 , gawk, gnused, gnugrep
4 }:
6 stdenv.mkDerivation rec {
7   pname = "git-remote-gcrypt";
8   version = "1.5";
9   rev = version;
11   src = fetchFromGitHub {
12     inherit rev;
13     owner = "spwhitton";
14     repo = "git-remote-gcrypt";
15     sha256 = "sha256-uy6s3YQwY/aZmQoW/qe1YrSlfNHyDTXBFxB6fPGiPNQ=";
16   };
18   outputs = [ "out" "man" ];
20   nativeBuildInputs = [ docutils makeWrapper ];
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   '';
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   };