From d8cd4e60d1f8bbdd5cb2be79901474e15c11b6b4 Mon Sep 17 00:00:00 2001 From: Austin Seipp Date: Mon, 17 Apr 2023 01:28:43 -0500 Subject: [PATCH] honggfuzz: install libraries, too honggfuzz embeds its .a libraries *inside* of the hfuzz-cc executable, extracts them when you invoke it, and links the .o file against them. But that doesn't help if you wanted to bind it to other languages such as Rust, for example. If you're using honggfuzz-rs, it embeds this automatically too, but if you're doing it yourself, you need these libraries to get anywhere. Signed-off-by: Austin Seipp --- pkgs/tools/security/honggfuzz/default.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pkgs/tools/security/honggfuzz/default.nix b/pkgs/tools/security/honggfuzz/default.nix index 5d709a4441d3..92af2f82b487 100644 --- a/pkgs/tools/security/honggfuzz/default.nix +++ b/pkgs/tools/security/honggfuzz/default.nix @@ -35,6 +35,14 @@ stdenv.mkDerivation rec { makeFlags = [ "PREFIX=$(out)" ]; + postInstall = '' + mkdir -p $out/lib + cp libhfuzz/libhfuzz.a $out/lib + cp libhfuzz/libhfuzz.so $out/lib + cp libhfcommon/libhfcommon.a $out/lib + cp libhfnetdriver/libhfnetdriver.a $out/lib + ''; + meta = { description = "A security oriented, feedback-driven, evolutionary, easy-to-use fuzzer";