File tree Expand file tree Collapse file tree 1 file changed +18
-3
lines changed Expand file tree Collapse file tree 1 file changed +18
-3
lines changed Original file line number Diff line number Diff line change 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
1014rustPlatform . 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
You can’t perform that action at this time.
0 commit comments