Skip to content

Commit 7417049

Browse files
committed
Julia: try adding precompile setting noci
1 parent 1ae75dc commit 7417049

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

languages/julia/default.nix

+8-1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,13 @@ let
1717
juliaWithPackages = callPackage ./julia-modules {};
1818

1919
settingsSchema = [
20+
{
21+
target = "precompile";
22+
title = "Precompile environment";
23+
description = "Whether to precompile Julia code when building the environment for faster imports. In some cases, precompilation can make the build fail, so turning this off can help.";
24+
type = "boolean";
25+
defaultValue = true;
26+
}
2027
{
2128
target = "lsp.LanguageServer.enable";
2229
title = "Enable LanguageServer language server";
@@ -131,7 +138,7 @@ mapAttrs (attr: value:
131138
let
132139
settingsToUse = (common.makeDefaultSettings settingsSchema) // settings;
133140

134-
julia = value (
141+
julia = (value.override { inherit (settingsToUse) precompile; }) (
135142
["IJulia"]
136143
++ packages
137144
++ lib.optionals (common.isTrue settingsToUse "lsp.LanguageServer.enable") ["LanguageServer" "SymbolServer"]

sample_environments/julia19.nix

+4-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,10 @@ codedown.mkCodeDownEnvironment {
1313
name = "julia19";
1414
channel = "codedown";
1515
args = {
16-
packages = ["JSON3" "Plots"];
16+
packages = ["JSON3" "Plots" "RDatasets"];
17+
# settings = {
18+
# precompile = false;
19+
# };
1720
};
1821
})
1922
];

0 commit comments

Comments
 (0)