2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, docutils, makeWrapper
|
2019-03-20 18:23:30 +00:00
|
|
|
, gnupg, curl, rsync, coreutils
|
2019-03-14 21:16:40 +00:00
|
|
|
, gawk, gnused, gnugrep
|
|
|
|
}:
|
2014-09-15 20:20:01 +01:00
|
|
|
|
2016-11-22 02:46:26 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "git-remote-gcrypt";
|
2021-01-29 19:02:06 +00:00
|
|
|
version = "1.4";
|
2016-11-22 02:46:26 +00:00
|
|
|
rev = version;
|
2014-09-15 20:20:01 +01:00
|
|
|
|
2016-11-22 02:46:26 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
inherit rev;
|
|
|
|
owner = "spwhitton";
|
|
|
|
repo = "git-remote-gcrypt";
|
2021-01-29 19:02:06 +00:00
|
|
|
sha256 = "sha256-uHgz8Aj5w8UOo/XbptCRKON1RAdDfFsLL9ZDEF1QrPQ=";
|
2014-09-15 20:20:01 +01:00
|
|
|
};
|
|
|
|
|
2016-11-22 02:46:26 +00:00
|
|
|
outputs = [ "out" "man" ];
|
|
|
|
|
2017-12-26 16:58:52 +00:00
|
|
|
nativeBuildInputs = [ docutils makeWrapper ];
|
2014-09-15 20:20:01 +01:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
prefix="$out" ./install.sh
|
2016-11-22 02:46:26 +00:00
|
|
|
wrapProgram "$out/bin/git-remote-gcrypt" \
|
2021-01-15 13:21:58 +00:00
|
|
|
--prefix PATH ":" "${lib.makeBinPath [ gnupg curl rsync coreutils
|
2019-03-14 21:16:40 +00:00
|
|
|
gawk gnused gnugrep ]}"
|
2014-09-15 20:20:01 +01:00
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://spwhitton.name/tech/code/git-remote-gcrypt";
|
2016-11-22 02:46:26 +00:00
|
|
|
description = "A git remote helper for GPG-encrypted remotes";
|
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = with maintainers; [ ellis montag451 ];
|
|
|
|
platforms = platforms.unix;
|
2014-09-15 20:20:01 +01:00
|
|
|
};
|
|
|
|
}
|