lol
1{ stdenv, fetchgit, docutils }:
2
3stdenv.mkDerivation {
4 name = "git-remote-gcrypt-20140715";
5
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";
11 };
12
13 # Required for rst2man.py
14 buildInputs = [ docutils ];
15
16 # The install.sh script expects rst2man, but here it's named rst2man.py
17 patchPhase = ''
18 sed -i 's/rst2man/rst2man.py/g' install.sh
19 '';
20
21 installPhase = ''
22 prefix="$out" ./install.sh
23 '';
24
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;
31 };
32}