summary refs log tree commit diff
path: root/pkgs/tools/networking/cjdns/default.nix
blob: 9f734f2f6d0fcf1193a099f5e5a9b11ad0f36276 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
{ stdenv, fetchFromGitHub, nodejs, which, python27 }:

let
  date = "20140928";
  rev = "e2b673698e471dbc82b4e9dbc04cb9e16f1f06a6";
in
stdenv.mkDerivation {
  name = "cjdns-${date}-${stdenv.lib.strings.substring 0 7 rev}";

  src = fetchFromGitHub {
    owner = "cjdelisle";
    repo = "cjdns";
    inherit rev;
    sha256 = "0ql51845rni6678dda03zr18ary7xlqcs3khva9x80x815h1sy8v";
  };

  patches = [ ./rfc5952.patch ];

  buildInputs = [ which python27 nodejs];

  buildPhase = "bash do";
  installPhase = "installBin cjdroute makekeys privatetopublic publictoip6";

  meta = with stdenv.lib; {
    homepage = https://github.com/cjdelisle/cjdns;
    description = "Encrypted networking for regular people";
    license = licenses.gpl3;
    maintainers = with maintainers; [ viric emery ];
    platforms = platforms.unix;
  };
}