From 8c1e0c7dccae2a863fa425f97ca3cd17e164c50a Mon Sep 17 00:00:00 2001 From: Christian Ulrich Date: Tue, 17 Nov 2020 22:31:04 +0100 Subject: [PATCH] quick-and-dirty fix for compilation error on aarch64 --- pkgs/picotls/default.nix | 3 +++ 1 file changed, 3 insertions(+) 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