summaryrefslogtreecommitdiff
path: root/packages/komodo/refl-cpp.scm
diff options
context:
space:
mode:
Diffstat (limited to 'packages/komodo/refl-cpp.scm')
-rw-r--r--packages/komodo/refl-cpp.scm22
1 files changed, 21 insertions, 1 deletions
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))