diff options
author | Mx Kookie <kookie@spacekookie.de> | 2020-12-09 18:55:19 +0000 |
---|---|---|
committer | Mx Kookie <kookie@spacekookie.de> | 2020-12-09 18:55:19 +0000 |
commit | 80d90d9b204f7c17912740f9f414fe5d59f293ba (patch) | |
tree | 5f2065a06e724270610760d59d01c6888b375a46 /infra/libkookie/nixpkgs/pkgs/desktops/pantheon/apps/switchboard/wrapper.nix | |
parent | 3a31a84c7d3e589035ad08499206aac44a81f424 (diff) | |
parent | 83cbad92d73216bb0d9187c56cce0b91f9121d5a (diff) |
Merge commit '83cbad92d73216bb0d9187c56cce0b91f9121d5a' into main
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.nix | 5 |
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; |