From 0c5cf00829d3e3414df3069c689ddaf27fc16c4a Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Mon, 9 Sep 2013 12:56:22 +0200 Subject: [PATCH] tcpcrypt: add current HEAD of the Github master branch --- pkgs/tools/security/tcpcrypt/default.nix | 28 ++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 30 insertions(+) create mode 100644 pkgs/tools/security/tcpcrypt/default.nix 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; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 0c779ae07bda..4f36ba63f074 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1794,6 +1794,8 @@ let tarsnap = callPackage ../tools/backup/tarsnap { }; + tcpcrypt = callPackage ../tools/security/tcpcrypt { }; + tcpdump = callPackage ../tools/networking/tcpdump { }; teamviewer = callPackage_i686 ../applications/networking/remote/teamviewer { };