2014-03-23 01:38:04 +00:00
|
|
|
{ stdenv, fetchgit, nodejs, which, python27 }:
|
2013-06-20 19:52:58 +01:00
|
|
|
|
|
|
|
let
|
2014-09-23 18:53:35 +01:00
|
|
|
date = "20140922";
|
|
|
|
rev = "5ebca772b0582173127e8c1e61ee235c5ab3fb50";
|
2013-06-20 19:52:58 +01:00
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
2014-03-23 01:38:04 +00:00
|
|
|
name = "cjdns-${date}-${stdenv.lib.strings.substring 0 7 rev}";
|
2013-06-20 19:52:58 +01:00
|
|
|
|
|
|
|
src = fetchgit {
|
2014-08-31 20:44:42 +01:00
|
|
|
url = "https://github.com/cjdelisle/cjdns.git";
|
2013-06-20 19:52:58 +01:00
|
|
|
inherit rev;
|
2014-09-23 18:53:35 +01:00
|
|
|
sha256 = "04abf73f4aede12c35b70ae09a367b3d6352a63f818185f788ed13356d06197a";
|
2013-06-20 19:52:58 +01:00
|
|
|
};
|
|
|
|
|
2014-03-23 01:38:04 +00:00
|
|
|
buildInputs = [ which python27 nodejs];
|
2013-06-20 19:52:58 +01:00
|
|
|
|
2014-08-31 20:44:42 +01:00
|
|
|
patches = [ ./makekey.patch ];
|
|
|
|
|
|
|
|
buildPhase = "bash do";
|
2014-09-20 15:52:20 +01:00
|
|
|
installPhase = "installBin cjdroute makekey";
|
2013-06-20 19:52:58 +01:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = https://github.com/cjdelisle/cjdns;
|
|
|
|
description = "Encrypted networking for regular people";
|
2014-03-23 01:38:04 +00:00
|
|
|
license = stdenv.lib.licenses.gpl3;
|
|
|
|
maintainers = with stdenv.lib.maintainers; [ viric emery ];
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2013-06-20 19:52:58 +01:00
|
|
|
};
|
|
|
|
}
|