about summary refs log tree commit diff
path: root/pkgs/applications/kde/kdevelop
diff options
context:
space:
mode:
authorFelix Buehler <account@buehler.rocks>2023-02-14 19:11:59 +0100
committerFelix Buehler <account@buehler.rocks>2023-02-14 19:11:59 +0100
commitbc3d5934d7f276a21537b40159491257ee163d94 (patch)
tree53b1d9bd9cb148a0ab34f2fd9e1d94802dde639e /pkgs/applications/kde/kdevelop
parent3bee4ab8db244db328b41ae5f4fbce19b658f1be (diff)
treewide: use lib.optionals
Diffstat (limited to 'pkgs/applications/kde/kdevelop')
-rw-r--r--pkgs/applications/kde/kdevelop/wrapper.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/applications/kde/kdevelop/wrapper.nix b/pkgs/applications/kde/kdevelop/wrapper.nix
index 86d3de9eb39a9..c73f2bba7b508 100644
--- a/pkgs/applications/kde/kdevelop/wrapper.nix
+++ b/pkgs/applications/kde/kdevelop/wrapper.nix
@@ -1,7 +1,7 @@
-{ symlinkJoin, kdevelop-unwrapped, plugins ? null }:
+{ lib, symlinkJoin, kdevelop-unwrapped, plugins ? null }:
 
 symlinkJoin {
   name = "kdevelop-with-plugins";
 
-  paths = [ kdevelop-unwrapped ] ++ (if plugins != null then plugins else []);
+  paths = [ kdevelop-unwrapped ] ++ (lib.optionals (plugins != null) plugins);
 }