1
0
Fork 0

nvim: Only include liblpeg on Darwin

This commit is contained in:
Daniel Kempkens 2023-05-04 13:10:19 +02:00
parent b2ae09c966
commit d6f1944263
Signed by: daniel
SSH key fingerprint: SHA256:Ks/MyhQYcPRQiwMKLAKquWCdCPe3JXlb1WttgnAoSeM

View file

@ -1,10 +1,14 @@
{ pkgs, config, lib, ... }: { pkgs, config, lib, ... }:
let
inherit (pkgs.stdenv) isDarwin;
inherit (lib) optionals;
in
{ {
programs.neovim = { programs.neovim = {
enable = true; enable = true;
package = pkgs.neovim-nightly.overrideAttrs (oa: { package = pkgs.neovim-nightly.overrideAttrs (oa: {
nativeBuildInputs = oa.nativeBuildInputs ++ [ nativeBuildInputs = oa.nativeBuildInputs ++ optionals isDarwin [
pkgs.liblpeg-darwin pkgs.liblpeg-darwin
]; ];
}); });
@ -48,7 +52,7 @@
shfmt shfmt
statix statix
yamllint yamllint
] ++ lib.optionals pkgs.stdenv.isDarwin [ ] ++ optionals isDarwin [
xcbuild xcbuild
]; ];