about summary refs log tree commit diff
path: root/pkgs/desktops/plasma-5
diff options
context:
space:
mode:
authorAlyssa Ross <hi@alyssa.is>2021-09-18 09:41:27 +0000
committerAlyssa Ross <hi@alyssa.is>2021-09-18 09:41:27 +0000
commit2a4d13f8da47dd6ee6eb331adaf96127ca37ae75 (patch)
tree03ea7a001e23ba30af6ffe217b839c2697187d36 /pkgs/desktops/plasma-5
parentd4f282e39317ac50aac58d26034047f33b72b151 (diff)
plasma5Packages.ksysguard: remove if !allowAliases
Usually in Nixpkgs, attributes that are remnants of old packages are
only included when aliases are enabled (which they are by default).
This brings plasma5Packages into line with that, and also makes it
easier to check the whole thing evaluates when working on the package
set.
Diffstat (limited to 'pkgs/desktops/plasma-5')
-rw-r--r--pkgs/desktops/plasma-5/default.nix8
1 files changed, 4 insertions, 4 deletions
diff --git a/pkgs/desktops/plasma-5/default.nix b/pkgs/desktops/plasma-5/default.nix
index 7e1bb2b1092b1..e5a2393088865 100644
--- a/pkgs/desktops/plasma-5/default.nix
+++ b/pkgs/desktops/plasma-5/default.nix
@@ -24,9 +24,8 @@ existing packages here and modify it as necessary.
 
 */
 
-{
-  libsForQt5, lib, fetchurl,
-  gconf, gsettings-desktop-schemas
+{ libsForQt5, lib, config, fetchurl
+, gconf, gsettings-desktop-schemas
 }:
 
 let
@@ -123,7 +122,6 @@ let
       kscreen = callPackage ./kscreen.nix {};
       kscreenlocker = callPackage ./kscreenlocker.nix {};
       ksshaskpass = callPackage ./ksshaskpass.nix {};
-      ksysguard = throw "ksysguard has been replaced with plasma-systemmonitor";
       ksystemstats = callPackage ./ksystemstats.nix {};
       kwallet-pam = callPackage ./kwallet-pam.nix {};
       kwayland-integration = callPackage ./kwayland-integration.nix {};
@@ -164,6 +162,8 @@ let
         parachute = callPackage ./3rdparty/kwin/scripts/parachute.nix { };
       };
 
+    } // lib.optionalAttrs (config.allowAliases or true) {
+      ksysguard = throw "ksysguard has been replaced with plasma-systemmonitor";
     };
 in
 lib.makeScope libsForQt5.newScope packages