1 { boost, cmake, fetchFromGitHub, gtest, libpcap, openssl, lib, stdenv }:
3 stdenv.mkDerivation rec {
7 src = fetchFromGitHub {
11 sha256 = "sha256-mXbinXh/CO0SZZ71+K+FozbHCCoi12+AIa2o+P0QmUw=";
16 cp -r ${gtest.src} googletest
17 chmod -R a+w googletest
20 nativeBuildInputs = [ cmake gtest ];
28 "--with-boost-libdir=${boost.out}/lib"
29 "--with-boost=${boost.dev}"
33 checkTarget = "tests test";
36 description = "High-level, multiplatform C++ network packet sniffing and crafting library";
37 homepage = "https://libtins.github.io/";
38 changelog = "https://raw.githubusercontent.com/mfontanini/${pname}/v${version}/CHANGES.md";
39 license = lib.licenses.bsd2;
40 maintainers = with maintainers; [ fdns ];
41 platforms = lib.platforms.unix;