python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / tools / security / zmap / default.nix
blob0e37b725db49c72e248729568b63abfb2db00613
1 { lib, stdenv, fetchFromGitHub, cmake, pkg-config, libjson, json_c, gengetopt, flex, byacc, gmp
2 , libpcap
3 }:
5 stdenv.mkDerivation rec {
6   pname = "zmap";
7   version = "2.1.1";
9   src = fetchFromGitHub {
10     owner = "zmap";
11     repo = pname;
12     rev = "v${version}";
13     sha256 = "0yaahaiawkjk020hvsb8pndbrk8k10wxkfba1irp12a4sj6rywcs";
14   };
16   patches = [
17     # fix build with json-c 0.14 https://github.com/zmap/zmap/pull/609
18     ./cmake-json-0.14-fix.patch
19   ];
21   cmakeFlags = [ "-DRESPECT_INSTALL_PREFIX_CONFIG=ON" ];
22   dontUseCmakeBuildDir = true;
24   nativeBuildInputs = [ cmake pkg-config gengetopt flex byacc ];
25   buildInputs = [ libjson json_c gmp libpcap ];
27   outputs = [ "out" "man" ];
29   meta = with lib; {
30     homepage = "https://zmap.io/";
31     license = licenses.asl20;
32     description = "Fast single packet network scanner designed for Internet-wide network surveys";
33     maintainers = with maintainers; [ ma27 ];
34     platforms = platforms.unix;
35     broken = stdenv.isDarwin;
36   };