2019-06-16 12:59:06 -07:00
|
|
|
{ makeWrapper, symlinkJoin, switchboard, switchboardPlugs, plugs }:
|
2018-08-20 13:31:18 -07:00
|
|
|
|
|
|
|
let
|
|
|
|
selectedPlugs = if plugs == null then switchboardPlugs else plugs;
|
|
|
|
in
|
|
|
|
symlinkJoin {
|
|
|
|
name = "${switchboard.name}-with-plugs";
|
|
|
|
|
|
|
|
paths = [ switchboard ] ++ selectedPlugs;
|
|
|
|
|
|
|
|
buildInputs = [ makeWrapper ];
|
|
|
|
|
|
|
|
postBuild = ''
|
|
|
|
wrapProgram $out/bin/io.elementary.switchboard \
|
|
|
|
--set SWITCHBOARD_PLUGS_PATH "$out/lib/switchboard"
|
|
|
|
'';
|
|
|
|
|
|
|
|
inherit (switchboard) meta;
|
|
|
|
}
|