about summary refs log tree commit diff
path: root/pkgs/tools/security/tcpcrypt
diff options
context:
space:
mode:
authorPeter Simons <simons@cryp.to>2013-09-09 12:56:22 +0200
committerPeter Simons <simons@cryp.to>2013-09-09 12:56:22 +0200
commit0c5cf00829d3e3414df3069c689ddaf27fc16c4a (patch)
tree44cfbe9e3a947bbd3b93449aea18247291a732d1 /pkgs/tools/security/tcpcrypt
parent2282809b350e25b90e35190d85b2cb5097b282ef (diff)
downloadnixlib-0c5cf00829d3e3414df3069c689ddaf27fc16c4a.tar
nixlib-0c5cf00829d3e3414df3069c689ddaf27fc16c4a.tar.gz
nixlib-0c5cf00829d3e3414df3069c689ddaf27fc16c4a.tar.bz2
nixlib-0c5cf00829d3e3414df3069c689ddaf27fc16c4a.tar.lz
nixlib-0c5cf00829d3e3414df3069c689ddaf27fc16c4a.tar.xz
nixlib-0c5cf00829d3e3414df3069c689ddaf27fc16c4a.tar.zst
nixlib-0c5cf00829d3e3414df3069c689ddaf27fc16c4a.zip
tcpcrypt: add current HEAD of the Github master branch
Diffstat (limited to 'pkgs/tools/security/tcpcrypt')
-rw-r--r--pkgs/tools/security/tcpcrypt/default.nix28
1 files changed, 28 insertions, 0 deletions
diff --git a/pkgs/tools/security/tcpcrypt/default.nix b/pkgs/tools/security/tcpcrypt/default.nix
new file mode 100644
index 000000000000..3026ed66d72f
--- /dev/null
+++ b/pkgs/tools/security/tcpcrypt/default.nix
@@ -0,0 +1,28 @@
+{ fetchurl, stdenv
+, openssl, libcap, libnfnetlink, libnetfilter_queue
+}:
+
+let
+  rev = "0e07772316061ad67b8770e7d98d5dd099c9c7c7";
+in
+stdenv.mkDerivation rec {
+  name = "tcpcrypt-2011.07.22";
+
+  src = fetchurl {
+    url = "https://github.com/sorbo/tcpcrypt/archive/${rev}.tar.gz";
+    sha256 = "1f1f1iawlvipnccwh31fxnb8yam1fgh36m0qcbc29qk1ggwrfnkk";
+    name = "${name}.tar.gz";
+  };
+
+  buildInputs = [ openssl libcap libnfnetlink libnetfilter_queue ];
+
+  preConfigure = "cd user";
+
+  meta = {
+    homepage = "http://tcpcrypt.org/";
+    description = "enable opportunistic encryption of all TCP traffic";
+
+    maintainers = [ stdenv.lib.maintainers.simons ];
+    platforms = stdenv.lib.platforms.linux;
+  };
+}