@@ -1,17 +1,20 @@
1−{ stdenv, fetchgit, docutils }:
1+{ stdenv, fetchFromGitHub, docutils, makeWrapper, gnupg1compat, curl, rsync }:
22
3−stdenv.mkDerivation {
4− name = "git-remote-gcrypt-20140715";
3+stdenv.mkDerivation rec {
4+ name = "git-remote-gcrypt-${version}";
5+ version = "1.0.0";
6+ rev = version;
57
6− # Use joeyh's branch that works better with git-annex
7− src = fetchgit {
8− url = "https://github.com/joeyh/git-remote-gcrypt.git";
9− rev = "5dcc77f507d497fe4023e94a47b6a7a1f1146bce";
10− sha256 = "d509efde143cfec4898872b5bb423d52d5d1c940b6a1e21b8444c904bdb250c2";
8+ src = fetchFromGitHub {
9+ inherit rev;
10+ owner = "spwhitton";
11+ repo = "git-remote-gcrypt";
12+ sha256 = "0c8ig1pdqj7wjwldnf62pmm2x29ri62x6b24mbsl2nxzkqbwh379";
1113 };
1214
13− # Required for rst2man.py
14− buildInputs = [ docutils ];
15+ outputs = [ "out" "man" ];
16+
17+ buildInputs = [ docutils makeWrapper ];
1518
1619 # The install.sh script expects rst2man, but here it's named rst2man.py
1720 patchPhase = ''
@@ -20,13 +23,15 @@ stdenv.mkDerivation {
2023
2124 installPhase = ''
2225 prefix="$out" ./install.sh
26+ wrapProgram "$out/bin/git-remote-gcrypt" \
27+ --prefix PATH ":" "${stdenv.lib.makeBinPath [ gnupg1compat curl rsync ]}"
2328 '';
2429
25− meta = {
26− homepage = "https://github.com/joeyh/git-remote-gcrypt";
27− description = "GNU Privacy Guard-encrypted git remote";
28− license = stdenv.lib.licenses.gpl3;
29− maintainers = with stdenv.lib.maintainers; [ ellis ];
30− platforms = with stdenv.lib.platforms; unix;
30+ meta = with stdenv.lib; {
31+ homepage = https://spwhitton.name/tech/code/git-remote-gcrypt;
32+ description = "A git remote helper for GPG-encrypted remotes";
33+ license = licenses.gpl3;
34+ maintainers = with maintainers; [ ellis montag451 ];
35+ platforms = platforms.unix;
3136 };
3237}