From 7cef66a3359bcae385b1c25267c4c67a0299ba36 Mon Sep 17 00:00:00 2001 From: Marek Paśnikowski Date: Fri, 22 Mar 2024 19:38:26 +0100 Subject: refl-cpp: change installation target: expose header file to komodo-wallet --- packages/komodo/refl-cpp.scm | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) (limited to 'packages/komodo/refl-cpp.scm') diff --git a/packages/komodo/refl-cpp.scm b/packages/komodo/refl-cpp.scm index 66c92c2..a9acc50 100644 --- a/packages/komodo/refl-cpp.scm +++ b/packages/komodo/refl-cpp.scm @@ -29,6 +29,21 @@ (define refl-cpp-version "v0.12.4") +;; ABSTRACTION LAYER -3 + +(define patch-install-rules + `(lambda _ + (substitute* "cmake/install-rules.cmake" + (("include\\/refl-cpp") + "include")))) + +;; ABSTRACTION LAYER -2 + +(define expose-header-file + `(add-after 'unpack + 'expose-header + ,patch-install-rules)) + ;; ABSTRACTION LAYER -1 (define refl-cpp-content-hash @@ -38,10 +53,15 @@ (git-reference (url refl-cpp-git-reference-url) (commit refl-cpp-version))) +(define refl-cpp-phases + `(modify-phases %standard-phases + ,expose-header-file)) + ;; ABSTRACTION LAYER 0 (define refl-cpp-arguments - (list #:tests? refl-cpp-tests)) + (list #:phases refl-cpp-phases + #:tests? refl-cpp-tests)) (define refl-cpp-description (string-concatenate refl-cpp-description-lines)) -- cgit v1.2.3