Skip to content

Commit e28e308

Browse files
nickel: enable nix-experimental feature flag (#384215)
2 parents 0b9ee9c + 9918c46 commit e28e308

File tree

1 file changed

+18
-3
lines changed

1 file changed

+18
-3
lines changed

pkgs/by-name/ni/nickel/package.nix

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
{
22
lib,
3+
boost,
34
rustPlatform,
45
fetchFromGitHub,
56
python3,
67
versionCheckHook,
8+
pkg-config,
9+
nix,
710
nix-update-script,
11+
enableNixImport ? true,
812
}:
913

1014
rustPlatform.buildRustPackage (finalAttrs: {
@@ -26,16 +30,27 @@ rustPlatform.buildRustPackage (finalAttrs: {
2630
"-p nickel-lang-lsp"
2731
];
2832

29-
nativeBuildInputs = [
30-
python3
33+
nativeBuildInputs =
34+
[
35+
python3
36+
]
37+
++ lib.optionals enableNixImport [
38+
pkg-config
39+
];
40+
41+
buildInputs = lib.optionals enableNixImport [
42+
nix
43+
boost
3144
];
3245

46+
buildFeatures = lib.optionals enableNixImport [ "nix-experimental" ];
47+
3348
outputs = [
3449
"out"
3550
"nls"
3651
];
3752

38-
# This fixes the way comrak is defined as a dependency, without the sed the build fails:
53+
# This fixes the way comrak is defined as a dependency, without it the build fails:
3954
#
4055
# cargo metadata failure: error: Package `nickel-lang-core v0.10.0
4156
# (/build/source/core)` does not have feature `comrak`. It has an optional

0 commit comments

Comments
 (0)