diff --git a/pkgs/picotls/default.nix b/pkgs/picotls/default.nix index 09c8cb3..3e6a14c 100644 --- a/pkgs/picotls/default.nix +++ b/pkgs/picotls/default.nix @@ -38,6 +38,9 @@ stdenv.mkDerivation rec { ]; patchPhase = '' + sed -i 's|^ADD_EXECUTABLE(ptlsbench t/ptlsbench.c)$||g' CMakeLists.txt + sed -i 's|^SET_TARGET_PROPERTIES(ptlsbench PROPERTIES COMPILE_FLAGS "-DPTLS_MEMORY_DEBUG=1")$||g' CMakeLists.txt + sed -i 's|^TARGET_LINK_LIBRARIES(ptlsbench ''${PTLSBENCH_LIBS})$||g' CMakeLists.txt sed -i 's|deps/picotest|${picotest}|g' CMakeLists.txt sed -i 's|../deps/picotest|${picotest}|g' t/picotls.c sed -i 's|../deps/picotest|${picotest}|g' t/minicrypto.c