nixpkgs/pkgs/desktops/deepin/dde-dock/wrapper.nix

26 lines
573 B
Nix
Raw Normal View History

2020-05-03 20:52:19 +01:00
{ makeWrapper
, symlinkJoin
, dde-dock
, plugins
}:
2018-11-14 14:37:07 +00:00
symlinkJoin {
name = "dde-dock-with-plugins-${dde-dock.version}";
paths = [ dde-dock ] ++ plugins;
buildInputs = [ makeWrapper ];
postBuild = ''
wrapProgram $out/bin/dde-dock \
--set DDE_DOCK_PLUGINS_DIR "$out/lib/dde-dock/plugins"
rm $out/share/dbus-1/services/com.deepin.dde.Dock.service
substitute ${dde-dock}/share/dbus-1/services/com.deepin.dde.Dock.service $out/share/dbus-1/services/com.deepin.dde.Dock.service \
--replace ${dde-dock} $out
'';
inherit (dde-dock) meta;
}