nixpkgs/pkgs/desktops/pantheon/apps/switchboard/wrapper.nix
volth f3282c8d1e treewide: remove unused variables (#63177)
* treewide: remove unused variables

* making ofborg happy
2019-06-16 19:59:05 +00:00

20 lines
449 B
Nix

{ makeWrapper, symlinkJoin, switchboard, switchboardPlugs, plugs }:
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;
}