Skip to content

Commit c134e9b

Browse files
authored
Merge pull request #1410 from josh/revert-1406-codex/disable-java-and-openjdk-dependencies
Restore Mason Java and Julia dependencies
2 parents 38cac9d + 16c3cc4 commit c134e9b

File tree

3 files changed

+16
-11
lines changed

3 files changed

+16
-11
lines changed

pkgs/LazyVim.nix

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
{
22
lib,
3+
stdenv,
34
callPackage,
5+
julia,
46
lazy-nvim-nix,
57
lazygit,
68
lazy-nvim ? lazy-nvim-nix.lazy-nvim,
@@ -88,11 +90,9 @@ in
8890
inherit neovim;
8991
pluginName = "mason";
9092
loadLazyPluginName = "mason.nvim";
91-
ignoreLines = [
92-
"WARNING java: not available"
93-
"WARNING javac: not available"
94-
"WARNING julia: not available"
95-
];
93+
ignoreLines = lib.lists.optional (
94+
!lib.meta.availableOn stdenv.hostPlatform julia
95+
) "WARNING julia: not available";
9696
};
9797

9898
checkhealth-noice = neovim-checkhealth.override {
Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
{
2+
lib,
23
callPackage,
4+
stdenv,
35
lazy-nvim-nix,
6+
julia,
47
}:
58
callPackage ./neovim-checkhealth.nix {
69
neovim = lazy-nvim-nix.lazy-nvim.override {
@@ -9,9 +12,7 @@ callPackage ./neovim-checkhealth.nix {
912
};
1013
pluginName = "mason";
1114
loadLazyPluginName = "mason.nvim";
12-
ignoreLines = [
13-
"WARNING java: not available"
14-
"WARNING javac: not available"
15-
"WARNING julia: not available"
16-
];
15+
ignoreLines = lib.lists.optional (
16+
!lib.meta.availableOn stdenv.hostPlatform julia
17+
) "WARNING julia: not available";
1718
}

plugins.nix

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
go,
2020
gzip,
2121
imagemagick,
22+
jdk,
23+
julia,
2224
lazygit,
2325
nodePackages,
2426
nodejs_24,
@@ -243,6 +245,7 @@ let
243245
gnutar
244246
go
245247
gzip
248+
jdk
246249
nodePackages.nodejs
247250
php83
248251
php83Packages.composer
@@ -251,7 +254,8 @@ let
251254
unzip
252255
wget
253256
yq-go
254-
];
257+
]
258+
++ (lib.lists.optional (lib.meta.availableOn stdenv.hostPlatform julia) julia);
255259
};
256260

257261
"nvim-treesitter" = plugins."nvim-treesitter" // {

0 commit comments

Comments
 (0)