mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2025-01-06 13:16:40 +03:00
pantheon.switchboard-with-plugs: add testing support
This commit is contained in:
parent
a7a1447e5d
commit
8f7b1ecb52
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user