summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEkaitz Zarraga <ekaitz@elenq.tech>2023-12-13 18:20:41 +0100
committerEkaitz Zarraga <ekaitz@elenq.tech>2023-12-13 18:20:41 +0100
commitd0c88731ee46ac3bded456684365546ac82a4ce6 (patch)
tree79367a9ddfa87fb33387c065042da3e69b62e2d7
parent4dbd72f8564a2d8cc7f5a367358f0be96de3e639 (diff)
zig: fix native-search-paths
-rw-r--r--zig.scm22
1 files changed, 22 insertions, 0 deletions
diff --git a/zig.scm b/zig.scm
index 37e6154..a4570bf 100644
--- a/zig.scm
+++ b/zig.scm
@@ -75,6 +75,17 @@
;; Zig compiles fine with GCC, but also needs native LLVM libraries.
(native-inputs
(list llvm-16))
+ (native-search-paths
+ (list
+ (search-path-specification
+ (variable "C_INCLUDE_PATH")
+ (files '("include")))
+ (search-path-specification
+ (variable "CPLUS_INCLUDE_PATH")
+ (files '("include/c++" "include")))
+ (search-path-specification
+ (variable "LIBRARY_PATH")
+ (files '("lib" "lib64")))))
(synopsis "General purpose programming language and toolchain")
(description "Zig is a general-purpose programming language and
toolchain. Among other features it provides
@@ -154,6 +165,17 @@ toolchain. Among other features it provides
;; Zig compiles fine with GCC, but also needs native LLVM libraries.
(native-inputs
(list llvm-17))
+ (native-search-paths
+ (list
+ (search-path-specification
+ (variable "C_INCLUDE_PATH")
+ (files '("include")))
+ (search-path-specification
+ (variable "CPLUS_INCLUDE_PATH")
+ (files '("include/c++" "include")))
+ (search-path-specification
+ (variable "LIBRARY_PATH")
+ (files '("lib" "lib64")))))
(synopsis "General purpose programming language and toolchain")
(description "Zig is a general-purpose programming language and
toolchain. Among other features it provides