2016-11-22 02:46:26 +00:00
|
|
|
{ stdenv, fetchFromGitHub, docutils, makeWrapper, gnupg1compat, curl, rsync }:
|
2014-09-15 20:20:01 +01:00
|
|
|
|
2016-11-22 02:46:26 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "git-remote-gcrypt-${version}";
|
|
|
|
version = "1.0.0";
|
|
|
|
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";
|
|
|
|
sha256 = "0c8ig1pdqj7wjwldnf62pmm2x29ri62x6b24mbsl2nxzkqbwh379";
|
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" \
|
|
|
|
--prefix PATH ":" "${stdenv.lib.makeBinPath [ gnupg1compat curl rsync ]}"
|
2014-09-15 20:20:01 +01:00
|
|
|
'';
|
|
|
|
|
2016-11-22 02:46:26 +00: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 20:20:01 +01:00
|
|
|
};
|
|
|
|
}
|