Skip to content

Commit

Permalink
pass thru feature nix-experimental (#2132)
Browse files Browse the repository at this point in the history
* uncomment import to facilitate current nixpkgs unstable

* pass thru feature `nix-experimental`
  • Loading branch information
KiaraGrouwstra authored Dec 26, 2024
1 parent 691a522 commit 228712f
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
1 change: 1 addition & 0 deletions cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ repl = ["nickel-lang-core/repl"]
doc = ["nickel-lang-core/doc", "comrak"]
format = ["nickel-lang-core/format", "dep:tempfile"]
metrics = ["dep:metrics", "dep:metrics-util", "nickel-lang-core/metrics"]
nix-experimental = ["nickel-lang-core/nix-experimental"]

[dependencies]
nickel-lang-core = { workspace = true, features = [ "markdown", "clap" ], default-features = false }
Expand Down
5 changes: 1 addition & 4 deletions core/src/nix_ffi/cpp/nix.cc
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,7 @@ using namespace nix;
#include <nix/value-to-json.hh>
#include <nix/command.hh>
#include <nix/value.hh>
// We will need this include when we update to latest Nix, but for now it's
// pinned to a previous version where `initGC()` is still exported by already
// imported headers, so we don't need it yet.
// #include <nix/eval-gc.hh>
#include <nix/eval-gc.hh>

#include "nickel-lang-core/src/nix_ffi/mod.rs.h"

Expand Down
3 changes: 3 additions & 0 deletions lsp/nls/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,6 @@ lsp-harness.workspace = true
nickel-lang-utils.workspace = true
pretty_assertions.workspace = true
test-generator.workspace = true

[features]
nix-experimental = ["nickel-lang-core/nix-experimental"]
5 changes: 4 additions & 1 deletion pyckel/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,7 @@ pyo3-build-config.workspace = true

[lib]
crate-type = ["cdylib", "rlib"]
bench = false
bench = false

[features]
nix-experimental = ["nickel-lang-core/nix-experimental"]

0 comments on commit 228712f

Please sign in to comment.