nixpkgs/pkgs/desktops/pantheon/apps/switchboard/wrapper.nix
worldofpeace 0b59f4212c pantheon: stylize expressions
The same way we want them in GNOME in nixpkgs.
Didn't touch the greeter expression because I have
a branch where it's already rewritten.
2019-08-06 11:20:01 -04:00

25 lines
453 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;
}