nvim: Only include liblpeg on Darwin
This commit is contained in:
parent
b2ae09c966
commit
d6f1944263
1 changed files with 6 additions and 2 deletions
|
@ -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
|
||||
];
|
||||
|
||||
|
|
Loading…
Reference in a new issue