fix(nix): separate default plugins (#1342)
Separate default plugins from `nativeBuildInputs`, in order to minimize rebuilds.
This commit is contained in:
parent
43c615e180
commit
bba12afbce
1 changed files with 8 additions and 7 deletions
|
|
@ -61,11 +61,6 @@ flake-utils.lib.eachSystem [
|
||||||
# for openssl/openssl-sys
|
# for openssl/openssl-sys
|
||||||
pkgs.pkg-config
|
pkgs.pkg-config
|
||||||
|
|
||||||
# default plugins
|
|
||||||
plugins.status-bar
|
|
||||||
plugins.tab-bar
|
|
||||||
plugins.strider
|
|
||||||
|
|
||||||
# generates manpages
|
# generates manpages
|
||||||
pkgs.mandown
|
pkgs.mandown
|
||||||
|
|
||||||
|
|
@ -73,6 +68,12 @@ flake-utils.lib.eachSystem [
|
||||||
pkgs.copyDesktopItems
|
pkgs.copyDesktopItems
|
||||||
];
|
];
|
||||||
|
|
||||||
|
defaultPlugins = [
|
||||||
|
plugins.status-bar
|
||||||
|
plugins.tab-bar
|
||||||
|
plugins.strider
|
||||||
|
];
|
||||||
|
|
||||||
pluginNativeBuildInputs = [
|
pluginNativeBuildInputs = [
|
||||||
pkgs.pkg-config
|
pkgs.pkg-config
|
||||||
# optimizes wasm binaries
|
# optimizes wasm binaries
|
||||||
|
|
@ -149,12 +150,12 @@ in rec {
|
||||||
name
|
name
|
||||||
src
|
src
|
||||||
crate2nix
|
crate2nix
|
||||||
nativeBuildInputs
|
|
||||||
desktopItems
|
desktopItems
|
||||||
postInstall
|
postInstall
|
||||||
patchPhase
|
patchPhase
|
||||||
meta
|
meta
|
||||||
;
|
;
|
||||||
|
nativeBuildInputs = nativeBuildInputs ++ defaultPlugins;
|
||||||
};
|
};
|
||||||
|
|
||||||
# native nixpkgs support - keep supported
|
# native nixpkgs support - keep supported
|
||||||
|
|
@ -163,13 +164,13 @@ in rec {
|
||||||
src
|
src
|
||||||
name
|
name
|
||||||
cargoLock
|
cargoLock
|
||||||
nativeBuildInputs
|
|
||||||
buildInputs
|
buildInputs
|
||||||
postInstall
|
postInstall
|
||||||
patchPhase
|
patchPhase
|
||||||
desktopItems
|
desktopItems
|
||||||
meta
|
meta
|
||||||
;
|
;
|
||||||
|
nativeBuildInputs = nativeBuildInputs ++ defaultPlugins;
|
||||||
};
|
};
|
||||||
packages.default = packages.zellij;
|
packages.default = packages.zellij;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue