summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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