From b38308553b00424bf859f8c60699c4a5c044f3f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Llu=C3=ADs=20Batlle=20i=20Rossell?= Date: Thu, 20 Jun 2013 20:52:58 +0200 Subject: [PATCH] Adding cjdns. The executable runs; I haven't tried to run a node. --- pkgs/tools/networking/cjdns/default.nix | 31 +++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 33 insertions(+) create mode 100644 pkgs/tools/networking/cjdns/default.nix diff --git a/pkgs/tools/networking/cjdns/default.nix b/pkgs/tools/networking/cjdns/default.nix new file mode 100644 index 000000000000..a76e351efc49 --- /dev/null +++ b/pkgs/tools/networking/cjdns/default.nix @@ -0,0 +1,31 @@ +{ stdenv, fetchgit, cmake }: + +let + rev = "f7b02ac0cc"; +in +stdenv.mkDerivation { + name = "cjdns-git-20130620-${rev}"; + + src = fetchgit { + url = "https://github.com/cjdelisle/cjdns.git"; + inherit rev; + sha256 = "1580a62yhph62nv7q2jdqrbkyk9a9g5i17snibkxyykc7rili5zq"; + }; + + preConfigure = '' + sed -i -e '/toolchain.*CACHE/d' CMakeLists.txt + ''; + + doCheck = true; + checkPhase = "ctest"; + + buildInputs = [ cmake ]; + + meta = { + homepage = https://github.com/cjdelisle/cjdns; + description = "Encrypted networking for regular people"; + license = "GPLv3+"; + maintainers = with stdenv.lib.maintainers; [viric]; + platforms = with stdenv.lib.platforms; linux; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 412d48e863ce..6316f0a75570 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -593,6 +593,8 @@ let chrony = callPackage ../tools/networking/chrony { }; + cjdns = callPackage ../tools/networking/cjdns { }; + cksfv = callPackage ../tools/networking/cksfv { }; ciopfs = callPackage ../tools/filesystems/ciopfs { };