Skip to content

Commit

Permalink
pantheon.switchboard-with-plugs: add testing support
Browse files Browse the repository at this point in the history
  • Loading branch information
worldofpeace committed Oct 26, 2020
1 parent a7a1447 commit 8f7b1ec
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkgs/desktops/pantheon/apps/switchboard/wrapper.nix
Expand Up @@ -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;

Expand Down

0 comments on commit 8f7b1ec

Please sign in to comment.