right package for neovim with allegro and no gcc with allegro

This commit is contained in:
Antoine Vaure 2024-10-21 01:20:13 +02:00 committed by ant
parent 6dd500f280
commit e84a8ae2ef

View file

@ -1,4 +1,4 @@
{ lib, config, pkgs, ... }: { { lib, config, pkgs, variant, pkgs-unstable, ... }: {
home.packages = with pkgs; [ home.packages = with pkgs; [
entr entr
trash-cli trash-cli
@ -20,9 +20,8 @@
enable = true; enable = true;
viAlias = true; viAlias = true;
defaultEditor = true; defaultEditor = true;
extraPackages = with pkgs; [ extraPackages = (with pkgs; [
nodejs_22 nodejs_22
gcc
ocamlPackages.lsp ocamlPackages.lsp
ocamlPackages.ocamlformat ocamlPackages.ocamlformat
cargo cargo
@ -33,8 +32,9 @@
ocamlPackages.ocaml-lsp ocamlPackages.ocaml-lsp
pyright pyright
ripgrep ripgrep
]; ]) ++ (if variant != "allegro" then [ pkgs.gcc ] else [] );
}; }
// lib.attrsets.optionalAttrs (variant == "allegro") { package = pkgs-unstable.neovim-unwrapped;};
xdg.mimeApps.defaultApplications = { "text/plain" = "nvim.desktop"; }; xdg.mimeApps.defaultApplications = { "text/plain" = "nvim.desktop"; };