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, ... }:
|
{ 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
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue