summary refs log tree commit diff
diff options
context:
space:
mode:
authorWORLDofPEACE <worldofpeace@protonmail.ch>2020-10-26 13:29:08 -0400
committerWORLDofPEACE <worldofpeace@protonmail.ch>2020-10-26 13:29:22 -0400
commit8f7b1ecb529ebe8e5f03eb7f44c4c8340ce7af2d (patch)
treeb9b55e1d49f5947a8a6a9ef753488344f50e8d68
parenta7a1447e5d40a9ad90983d33e151f5474eddeed9 (diff)
downloadnixpkgs-8f7b1ecb529ebe8e5f03eb7f44c4c8340ce7af2d.tar
nixpkgs-8f7b1ecb529ebe8e5f03eb7f44c4c8340ce7af2d.tar.gz
nixpkgs-8f7b1ecb529ebe8e5f03eb7f44c4c8340ce7af2d.tar.bz2
nixpkgs-8f7b1ecb529ebe8e5f03eb7f44c4c8340ce7af2d.tar.lz
nixpkgs-8f7b1ecb529ebe8e5f03eb7f44c4c8340ce7af2d.tar.xz
nixpkgs-8f7b1ecb529ebe8e5f03eb7f44c4c8340ce7af2d.tar.zst
nixpkgs-8f7b1ecb529ebe8e5f03eb7f44c4c8340ce7af2d.zip
pantheon.switchboard-with-plugs: add testing support
-rw-r--r--pkgs/desktops/pantheon/apps/switchboard/wrapper.nix5
1 files changed, 4 insertions, 1 deletions
diff --git a/pkgs/desktops/pantheon/apps/switchboard/wrapper.nix b/pkgs/desktops/pantheon/apps/switchboard/wrapper.nix
index 67f4105ff3d..7953105951c 100644
--- a/pkgs/desktops/pantheon/apps/switchboard/wrapper.nix
+++ b/pkgs/desktops/pantheon/apps/switchboard/wrapper.nix
@@ -8,15 +8,18 @@
 , plugs
   # Only useful to disable for development testing.
 , useDefaultPlugs ? true
+, testName ? null
 }:
 
 let
   selectedPlugs =
     if plugs == null then switchboardPlugs
     else plugs ++ (lib.optionals useDefaultPlugs switchboardPlugs);
+
+  testingName = lib.optionalString (testName != null) "${testName}-";
 in
 stdenv.mkDerivation rec {
-  name = "${switchboard.name}-with-plugs";
+  name = "${testingName}${switchboard.name}-with-plugs";
 
   src = null;