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";
|
2021-02-05 17:12:51 +00:00
|
|
|
version = "1.4";
|
2020-04-24 23:36:52 +00:00
|
|
|
rev = version;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
inherit rev;
|
|
|
|
owner = "spwhitton";
|
|
|
|
repo = "git-remote-gcrypt";
|
2021-02-05 17:12:51 +00:00
|
|
|
sha256 = "sha256-uHgz8Aj5w8UOo/XbptCRKON1RAdDfFsLL9ZDEF1QrPQ=";
|
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";
|
|
|
|
description = "A git remote helper for GPG-encrypted remotes";
|
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = with maintainers; [ ellis montag451 ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|