fix(nix): separate default plugins
Separate default plugins from `nativeBuildInputs`,
in order to minimize rebuilds.
@@ -61,11 +61,6 @@ flake-utils.lib.eachSystem [
# for openssl/openssl-sys
pkgs.pkg-config
- # default plugins
- plugins.status-bar
- plugins.tab-bar
- plugins.strider
-
# generates manpages
pkgs.mandown
@@ -73,6 +68,12 @@ flake-utils.lib.eachSystem [
pkgs.copyDesktopItems
];
+ defaultPlugins = [
+ plugins.status-bar
+ plugins.tab-bar
+ plugins.strider
+ ];
+
pluginNativeBuildInputs = [
pkgs.pkg-config
# optimizes wasm binaries
@@ -149,12 +150,12 @@ in rec {
name
src
crate2nix
- nativeBuildInputs
desktopItems
postInstall
patchPhase
meta
;
+ nativeBuildInputs = nativeBuildInputs ++ defaultPlugins;
};
# native nixpkgs support - keep supported
@@ -163,13 +164,13 @@ in rec {
src
name
cargoLock
- nativeBuildInputs
buildInputs
postInstall
patchPhase
desktopItems
meta
;
+ nativeBuildInputs = nativeBuildInputs ++ defaultPlugins;
};
packages.default = packages.zellij;
