pantheon.switchboard-with-plugs: add testing support
This commit is contained in:
parent
a7a1447e5d
commit
8f7b1ecb52
|
@ -8,15 +8,18 @@
|
||||||
, plugs
|
, plugs
|
||||||
# Only useful to disable for development testing.
|
# Only useful to disable for development testing.
|
||||||
, useDefaultPlugs ? true
|
, useDefaultPlugs ? true
|
||||||
|
, testName ? null
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
selectedPlugs =
|
selectedPlugs =
|
||||||
if plugs == null then switchboardPlugs
|
if plugs == null then switchboardPlugs
|
||||||
else plugs ++ (lib.optionals useDefaultPlugs switchboardPlugs);
|
else plugs ++ (lib.optionals useDefaultPlugs switchboardPlugs);
|
||||||
|
|
||||||
|
testingName = lib.optionalString (testName != null) "${testName}-";
|
||||||
in
|
in
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "${switchboard.name}-with-plugs";
|
name = "${testingName}${switchboard.name}-with-plugs";
|
||||||
|
|
||||||
src = null;
|
src = null;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue