From 58452ecdb4e474cfbf09d6afdd2d58e5828061d3 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Tue, 17 Oct 2023 11:20:18 +0300 Subject: [PATCH] gnu: valeronoi: Unbundle catch2 header. * gnu/packages/engineering.scm (valeroni)[source]: Add snippet to remove bundled header. [native-inputs]: Add catch2. --- gnu/packages/engineering.scm | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/gnu/packages/engineering.scm b/gnu/packages/engineering.scm index f118af0f13..e30face9e1 100644 --- a/gnu/packages/engineering.scm +++ b/gnu/packages/engineering.scm @@ -1369,7 +1369,13 @@ the 'showing the effect of'-style of operation.") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "1qkhrqkjsmm0h1bxf2ihkqfhdr18xx5x1i2ds1mla13zm0bw2570")))) + (base32 "1qkhrqkjsmm0h1bxf2ihkqfhdr18xx5x1i2ds1mla13zm0bw2570")) + (snippet + #~(begin (use-modules (guix build utils)) + (delete-file-recursively "3rdparty") + (substitute* '("tests/test_colormap.cpp" + "tests/test_main.cpp") + (("catch\\.hpp") "catch2/catch.hpp")))))) (build-system cmake-build-system) (arguments `(#:phases @@ -1387,6 +1393,8 @@ the 'showing the effect of'-style of operation.") openssl qtbase qtsvg)) + (native-inputs + (list catch2)) (home-page "https://github.com/ccoors/Valeronoi") (synopsis "WiFi mapping companion application for Valetudo") (description