2022-08-12 12:06:08 +00:00
|
|
|
{ stdenv
|
|
|
|
, mate
|
|
|
|
, glib
|
|
|
|
, wrapGAppsHook
|
|
|
|
}:
|
2022-04-15 01:41:22 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
pname = "${mate.mate-settings-daemon.pname}-wrapped";
|
|
|
|
version = mate.mate-settings-daemon.version;
|
2022-08-12 12:06:08 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
wrapGAppsHook
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
glib
|
|
|
|
mate.mate-control-center
|
|
|
|
];
|
|
|
|
|
2022-04-15 01:41:22 +00:00
|
|
|
dontWrapGApps = true;
|
2022-08-12 12:06:08 +00:00
|
|
|
|
2022-04-15 01:41:22 +00:00
|
|
|
dontUnpack = true;
|
2022-08-12 12:06:08 +00:00
|
|
|
|
2022-04-15 01:41:22 +00:00
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/etc/xdg/autostart
|
|
|
|
cp ${mate.mate-settings-daemon}/etc/xdg/autostart/mate-settings-daemon.desktop $out/etc/xdg/autostart
|
|
|
|
'';
|
2022-08-12 12:06:08 +00:00
|
|
|
|
2022-04-15 01:41:22 +00:00
|
|
|
postFixup = ''
|
|
|
|
mkdir -p $out/libexec
|
|
|
|
makeWrapper ${mate.mate-settings-daemon}/libexec/mate-settings-daemon $out/libexec/mate-settings-daemon \
|
|
|
|
"''${gappsWrapperArgs[@]}"
|
|
|
|
substituteInPlace $out/etc/xdg/autostart/mate-settings-daemon.desktop \
|
|
|
|
--replace "${mate.mate-settings-daemon}/libexec/mate-settings-daemon" "$out/libexec/mate-settings-daemon"
|
|
|
|
'';
|
2022-08-12 12:06:08 +00:00
|
|
|
|
2022-04-15 01:41:22 +00:00
|
|
|
meta = mate.mate-settings-daemon.meta // { priority = -10; };
|
|
|
|
}
|