diff --git a/home/programs/nvim/default.nix b/home/programs/nvim/default.nix index 44e5d1b..70bf02c 100644 --- a/home/programs/nvim/default.nix +++ b/home/programs/nvim/default.nix @@ -1,10 +1,14 @@ { pkgs, config, lib, ... }: +let + inherit (pkgs.stdenv) isDarwin; + inherit (lib) optionals; +in { programs.neovim = { enable = true; package = pkgs.neovim-nightly.overrideAttrs (oa: { - nativeBuildInputs = oa.nativeBuildInputs ++ [ + nativeBuildInputs = oa.nativeBuildInputs ++ optionals isDarwin [ pkgs.liblpeg-darwin ]; }); @@ -48,7 +52,7 @@ shfmt statix yamllint - ] ++ lib.optionals pkgs.stdenv.isDarwin [ + ] ++ optionals isDarwin [ xcbuild ];