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 19:20:01 +00:00
|
|
|
|
2016-11-22 02:46:26 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "git-remote-gcrypt";
|
2022-08-28 23:56:36 +00:00
|
|
|
version = "1.5";
|
2016-11-22 02:46:26 +00:00
|
|
|
rev = version;
|
2014-09-15 19:20:01 +00:00
|
|
|
|
2016-11-22 02:46:26 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
inherit rev;
|
|
|
|
owner = "spwhitton";
|
|
|
|
repo = "git-remote-gcrypt";
|
2022-08-28 23:56:36 +00:00
|
|
|
sha256 = "sha256-uy6s3YQwY/aZmQoW/qe1YrSlfNHyDTXBFxB6fPGiPNQ=";
|
2014-09-15 19:20:01 +00: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 19:20:01 +00: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 19:20:01 +00:00
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://spwhitton.name/tech/code/git-remote-gcrypt";
|
2016-11-22 02:46:26 +00:00
|
|
|
description = "Git remote helper for GPG-encrypted remotes";
|
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = with maintainers; [ ellis montag451 ];
|
|
|
|
platforms = platforms.unix;
|
2023-11-27 01:17:53 +00:00
|
|
|
mainProgram = "git-remote-gcrypt";
|
2014-09-15 19:20:01 +00:00
|
|
|
};
|
|
|
|
}
|