feat: Add nix-expr library, update nix

(cherry picked from commit bf1ddd1c9137578b86895577d5b80e0c5771b605)
This commit is contained in:
Robert Hensing 2024-03-19 14:43:01 +01:00
parent be8aa55a38
commit 6978e91fa9
11 changed files with 399 additions and 9 deletions

View file

@ -37,6 +37,14 @@ fn c_headers() -> Vec<String> {
args.push(format!("-I{}", path.to_str().unwrap()));
}
for path in pkg_config::probe_library("bdw-gc")
.unwrap()
.include_paths
.iter()
{
args.push(format!("-I{}", path.to_str().unwrap()));
}
if let Ok(cflags) = std::env::var("RUST_NIX_C_RAW_EXTRA_CFLAGS") {
for flag in cflags.split_whitespace() {
args.push(flag.to_string());

View file

@ -1,4 +1,6 @@
#include <nix_api_util.h>
#include <nix_api_store.h>
#define GC_THREADS
#include <gc/gc.h>
#include <nix_api_expr.h>
#include <nix_api_value.h>