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 | |
| parent | fix: remove `flake-utils` follows attribute (#1341) (diff) | |
| download | sl0ppij-bba12afbce4d9f9ae3881b3fe36d77dd1fec3fb8.tar.gz sl0ppij-bba12afbce4d9f9ae3881b3fe36d77dd1fec3fb8.tar.xz sl0ppij-bba12afbce4d9f9ae3881b3fe36d77dd1fec3fb8.zip | |
fix(nix): separate default plugins (#1342)
Separate default plugins from `nativeBuildInputs`,
in order to minimize rebuilds.
| -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 4f967bfc..f001b2ec 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; |
