2019-03-14 14:16:40 -07:00
|
|
|
{ stdenv, fetchFromGitHub, docutils, makeWrapper
|
2019-03-20 11:23:30 -07:00
|
|
|
, gnupg, curl, rsync, coreutils
|
2019-03-14 14:16:40 -07:00
|
|
|
, gawk, gnused, gnugrep
|
|
|
|
}:
|
2014-09-15 12:20:01 -07:00
|
|
|
|
2016-11-21 18:46:26 -08:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 05:41:18 -07:00
|
|
|
pname = "git-remote-gcrypt";
|
2019-01-01 10:55:43 -08:00
|
|
|
version = "1.2";
|
2016-11-21 18:46:26 -08:00
|
|
|
rev = version;
|
2014-09-15 12:20:01 -07:00
|
|
|
|
2016-11-21 18:46:26 -08:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
inherit rev;
|
|
|
|
owner = "spwhitton";
|
|
|
|
repo = "git-remote-gcrypt";
|
2019-01-01 10:55:43 -08:00
|
|
|
sha256 = "0isfg0vlmcphxzj4jm32dycprhym26ina1b28jgc4j57kiqqrdcy";
|
2014-09-15 12:20:01 -07:00
|
|
|
};
|
|
|
|
|
2016-11-21 18:46:26 -08:00
|
|
|
outputs = [ "out" "man" ];
|
|
|
|
|
2017-12-26 08:58:52 -08:00
|
|
|
nativeBuildInputs = [ docutils makeWrapper ];
|
2014-09-15 12:20:01 -07:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
prefix="$out" ./install.sh
|
2016-11-21 18:46:26 -08:00
|
|
|
wrapProgram "$out/bin/git-remote-gcrypt" \
|
2019-03-20 11:23:30 -07:00
|
|
|
--prefix PATH ":" "${stdenv.lib.makeBinPath [ gnupg curl rsync coreutils
|
2019-03-14 14:16:40 -07:00
|
|
|
gawk gnused gnugrep ]}"
|
2014-09-15 12:20:01 -07:00
|
|
|
'';
|
|
|
|
|
2016-11-21 18:46:26 -08:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
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;
|
2014-09-15 12:20:01 -07:00
|
|
|
};
|
|
|
|
}
|