1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-19 12:11:28 +00:00

mate-settings-daemon-wrapped: init

This commit is contained in:
Ilya Fedin 2022-04-01 07:44:43 +04:00
parent bf2b42a2c1
commit 7ca4bdd62e
2 changed files with 24 additions and 0 deletions

View file

@ -42,6 +42,7 @@ let
mate-sensors-applet = callPackage ./mate-sensors-applet { };
mate-session-manager = callPackage ./mate-session-manager { };
mate-settings-daemon = callPackage ./mate-settings-daemon { };
mate-settings-daemon-wrapped = callPackage ./mate-settings-daemon/wrapped.nix { };
mate-screensaver = callPackage ./mate-screensaver { };
mate-system-monitor = callPackage ./mate-system-monitor { };
mate-terminal = callPackage ./mate-terminal { };
@ -70,6 +71,7 @@ let
mate-polkit
mate-session-manager
mate-settings-daemon
mate-settings-daemon-wrapped
mate-themes
];

View file

@ -0,0 +1,22 @@
{ stdenv, mate, glib, wrapGAppsHook }:
stdenv.mkDerivation {
pname = "${mate.mate-settings-daemon.pname}-wrapped";
version = mate.mate-settings-daemon.version;
nativeBuildInputs = [ wrapGAppsHook ];
buildInputs = [ glib mate.mate-control-center ];
dontWrapGApps = true;
dontUnpack = true;
installPhase = ''
mkdir -p $out/etc/xdg/autostart
cp ${mate.mate-settings-daemon}/etc/xdg/autostart/mate-settings-daemon.desktop $out/etc/xdg/autostart
'';
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"
'';
meta = mate.mate-settings-daemon.meta // { priority = -10; };
}