lol

zmap: support json_c-0.14

+18
+13
pkgs/tools/security/zmap/cmake-json-0.14-fix.patch
··· 1 + diff --git a/CMakeLists.txt b/CMakeLists.txt 2 + index 8bd825f..694d9b2 100644 3 + --- a/CMakeLists.txt 4 + +++ b/CMakeLists.txt 5 + @@ -72,6 +72,8 @@ if(WITH_JSON) 6 + endif() 7 + 8 + add_definitions("-DJSON") 9 + + # JSON_CFLAGS is a list, i.e. semicolon-separated, convert it to space-separated 10 + + string(REPLACE ";" " " JSON_CFLAGS "${JSON_CFLAGS}") 11 + set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${JSON_CFLAGS}") 12 + endif() 13 +
+5
pkgs/tools/security/zmap/default.nix
··· 13 13 sha256 = "0yaahaiawkjk020hvsb8pndbrk8k10wxkfba1irp12a4sj6rywcs"; 14 14 }; 15 15 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 + ]; 20 + 16 21 cmakeFlags = [ "-DRESPECT_INSTALL_PREFIX_CONFIG=ON" ]; 17 22 dontUseCmakeBuildDir = true; 18 23