aboutsummaryrefslogtreecommitdiff
path: root/infra/libkookie/nixpkgs/pkgs/desktops/pantheon/apps/switchboard/wrapper.nix
diff options
context:
space:
mode:
Diffstat (limited to 'infra/libkookie/nixpkgs/pkgs/desktops/pantheon/apps/switchboard/wrapper.nix')
-rw-r--r--infra/libkookie/nixpkgs/pkgs/desktops/pantheon/apps/switchboard/wrapper.nix5
1 files changed, 4 insertions, 1 deletions
diff --git a/infra/libkookie/nixpkgs/pkgs/desktops/pantheon/apps/switchboard/wrapper.nix b/infra/libkookie/nixpkgs/pkgs/desktops/pantheon/apps/switchboard/wrapper.nix
index 67f4105ff3d1..7953105951c6 100644
--- a/infra/libkookie/nixpkgs/pkgs/desktops/pantheon/apps/switchboard/wrapper.nix
+++ b/infra/libkookie/nixpkgs/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;