about summary refs log tree commit diff
path: root/pkgs/tools/security/honggfuzz
diff options
context:
space:
mode:
authorRobert Scott <code@humanleg.org.uk>2020-09-03 22:47:52 +0100
committerJon <jonringer@users.noreply.github.com>2020-09-03 15:08:06 -0700
commitc941a63cb0e6fbcf0b3c1c4f6e36ef806c544c9e (patch)
tree114d9014b13ce00ed1d82eb38715d5982b89f841 /pkgs/tools/security/honggfuzz
parentea5d0dcd76a79b0fc43c5cef8a4346002e25aef7 (diff)
honggfuzz: patch hfuzz-cc.c to fix path to buildtime-provided clang
i judged this slightly better than using a wrapper
Diffstat (limited to 'pkgs/tools/security/honggfuzz')
-rw-r--r--pkgs/tools/security/honggfuzz/default.nix6
1 files changed, 6 insertions, 0 deletions
diff --git a/pkgs/tools/security/honggfuzz/default.nix b/pkgs/tools/security/honggfuzz/default.nix
index 2846cf77b3311..71146b15ea3d3 100644
--- a/pkgs/tools/security/honggfuzz/default.nix
+++ b/pkgs/tools/security/honggfuzz/default.nix
@@ -13,6 +13,12 @@ let
       rev = "${version}";
       sha256 = "0dcl5a5jykgfmnfj42vl7kah9k26wg38l2g6yfh5pssmlf0nax33";
     };
+
+    postPatch = ''
+      substituteInPlace hfuzz_cc/hfuzz-cc.c \
+        --replace '"clang' '"${clang}/bin/clang'
+    '';
+
     enableParallelBuilding = true;
 
     nativeBuildInputs = [ makeWrapper ];