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:
parent
bf2b42a2c1
commit
7ca4bdd62e
|
@ -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
|
||||
];
|
||||
|
||||
|
|
22
pkgs/desktops/mate/mate-settings-daemon/wrapped.nix
Normal file
22
pkgs/desktops/mate/mate-settings-daemon/wrapped.nix
Normal 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; };
|
||||
}
|
Loading…
Reference in a new issue