diff options
author | a-kenji <aks.kenji@protonmail.com> | 2022-04-24 20:48:52 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-24 20:48:52 +0200 |
commit | bba12afbce4d9f9ae3881b3fe36d77dd1fec3fb8 (patch) | |
tree | e096a9653aed8ab48f540049a092e8e7d2f30e4b /nix | |
parent | 43c615e180cc2941165a16c7010f4cee95706ed5 (diff) |
fix(nix): separate default plugins (#1342)
Separate default plugins from `nativeBuildInputs`,
in order to minimize rebuilds.
Diffstat (limited to 'nix')
-rw-r--r-- | nix/default.nix | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/nix/default.nix b/nix/default.nix index 4f967bfc6..f001b2ec4 100644 --- a/nix/default.nix +++ b/nix/default.nix @@ -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; |