nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 53 lines 954 B view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 autoreconfHook, 6 openssl, 7 libcap, 8 libpcap, 9 libnfnetlink, 10 libnetfilter_conntrack, 11 libnetfilter_queue, 12}: 13 14stdenv.mkDerivation rec { 15 pname = "tcpcrypt"; 16 version = "0.5"; 17 18 src = fetchFromGitHub { 19 repo = "tcpcrypt"; 20 owner = "scslab"; 21 rev = "v${version}"; 22 sha256 = "0a015rlyvagz714pgwr85f8gjq1fkc0il7d7l39qcgxrsp15b96w"; 23 }; 24 25 postUnpack = "mkdir -vp $sourceRoot/m4"; 26 27 outputs = [ 28 "bin" 29 "dev" 30 "out" 31 ]; 32 nativeBuildInputs = [ autoreconfHook ]; 33 buildInputs = [ 34 openssl 35 libpcap 36 ] 37 ++ lib.optionals stdenv.hostPlatform.isLinux [ 38 libcap 39 libnfnetlink 40 libnetfilter_conntrack 41 libnetfilter_queue 42 ]; 43 44 enableParallelBuilding = true; 45 46 meta = with lib; { 47 broken = stdenv.hostPlatform.isDarwin; 48 homepage = "http://tcpcrypt.org/"; 49 description = "Fast TCP encryption"; 50 platforms = platforms.all; 51 license = licenses.bsd2; 52 }; 53}