maint: Update Nix
(cherry picked from commit 203f5d519369235097fef2bdaefa6b3d0f5e963b)
This commit is contained in:
parent
676120cd6a
commit
d40bbbed88
10 changed files with 74 additions and 13 deletions
|
|
@ -13,7 +13,7 @@ impl bindgen::callbacks::ParseCallbacks for StripNixPrefix {
|
|||
fn main() {
|
||||
// Tell cargo to invalidate the built crate whenever the wrapper changes
|
||||
println!("cargo:rerun-if-changed=include/nix-c-raw.h");
|
||||
// println!("cargo:rustc-link-lib=nixflake");
|
||||
println!("cargo:rustc-link-lib=nixflake");
|
||||
|
||||
// https://rust-lang.github.io/rust-bindgen/library-usage.html
|
||||
let bindings = bindgen::Builder::default()
|
||||
|
|
@ -39,7 +39,7 @@ fn main() {
|
|||
fn c_headers() -> Vec<String> {
|
||||
let mut args = Vec::new();
|
||||
// args.push("-isystem".to_string());
|
||||
for path in pkg_config::probe_library("nix-expr-c")
|
||||
for path in pkg_config::probe_library("nix-flake-c")
|
||||
.unwrap()
|
||||
.include_paths
|
||||
.iter()
|
||||
|
|
|
|||
|
|
@ -4,3 +4,4 @@
|
|||
#include <gc/gc.h>
|
||||
#include <nix_api_expr.h>
|
||||
#include <nix_api_value.h>
|
||||
#include <nix_api_flake.h>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue