mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-12 14:16:55 -05:00
gnu: lightdm-gtk-greeter: Use the glib-or-gtk-wrap phase as-is.
* gnu/packages/display-managers.scm (lightdm-gtk-greeter) [configure-flags]: Install binaries to bin/, so the wrap phase of glib-or-gtk handles them. [phases]{wrap-program}: Delete. {custom-wrap}: New phase, wrapping the wrapper with a few extra environment variables.
This commit is contained in:
parent
9376411fbe
commit
0d23e9cda2
1 changed files with 26 additions and 28 deletions
|
@ -54,6 +54,7 @@ (define-module (gnu packages display-managers)
|
||||||
#:use-module (gnu packages gnome)
|
#:use-module (gnu packages gnome)
|
||||||
#:use-module (gnu packages gnupg)
|
#:use-module (gnu packages gnupg)
|
||||||
#:use-module (gnu packages gtk)
|
#:use-module (gnu packages gtk)
|
||||||
|
#:use-module (gnu packages guile)
|
||||||
#:use-module (gnu packages image)
|
#:use-module (gnu packages image)
|
||||||
#:use-module (gnu packages kde-frameworks)
|
#:use-module (gnu packages kde-frameworks)
|
||||||
#:use-module (gnu packages linux)
|
#:use-module (gnu packages linux)
|
||||||
|
@ -353,6 +354,9 @@ (define-public lightdm-gtk-greeter
|
||||||
(list
|
(list
|
||||||
#:configure-flags
|
#:configure-flags
|
||||||
#~(list "--disable-indicator-services-command" ;requires upstart
|
#~(list "--disable-indicator-services-command" ;requires upstart
|
||||||
|
;; Put the binary under /bin rather than /sbin, so that it gets
|
||||||
|
;; wrapped by the glib-or-gtk-wrap phase.
|
||||||
|
(string-append "--sbindir=" #$output "/bin")
|
||||||
(string-append "--enable-at-spi-command="
|
(string-append "--enable-at-spi-command="
|
||||||
(search-input-file
|
(search-input-file
|
||||||
%build-inputs "libexec/at-spi-bus-launcher")))
|
%build-inputs "libexec/at-spi-bus-launcher")))
|
||||||
|
@ -367,35 +371,29 @@ (define-public lightdm-gtk-greeter
|
||||||
(("Exec=lightdm-gtk-greeter")
|
(("Exec=lightdm-gtk-greeter")
|
||||||
(string-append "Exec="
|
(string-append "Exec="
|
||||||
(search-input-file
|
(search-input-file
|
||||||
outputs "sbin/lightdm-gtk-greeter"))))))
|
outputs "bin/lightdm-gtk-greeter"))))))
|
||||||
(add-after 'fix-.desktop-file 'wrap-program
|
(add-after 'glib-or-gtk-wrap 'custom-wrap
|
||||||
;; Mimic glib-or-gtk build system which doesn't wrap files in
|
(lambda* (#:key outputs #:allow-other-keys)
|
||||||
;; /sbin.
|
(wrap-script (search-input-file
|
||||||
(lambda* (#:key outputs inputs #:allow-other-keys)
|
outputs "bin/lightdm-gtk-greeter")
|
||||||
(let ((gtk #$(this-package-input "gtk+"))
|
;; Wrap GDK_PIXBUF_MODULE_FILE, so that the SVG loader is
|
||||||
(shared-mime-info #$(this-package-input "shared-mime-info"))
|
;; available at all times even outside of profiles, such as
|
||||||
(glib #$(this-package-input "glib")))
|
;; when used in the lightdm-service-type. Otherwise, it
|
||||||
(wrap-program (search-input-file
|
;; wouldn't be able to display its own icons.
|
||||||
outputs "sbin/lightdm-gtk-greeter")
|
`("GDK_PIXBUF_MODULE_FILE" =
|
||||||
;; Wrap GDK_PIXBUF_MODULE_FILE, so that the SVG loader is
|
(,(search-input-file
|
||||||
;; available at all times even outside of profiles, such as
|
outputs
|
||||||
;; when used in the lightdm-service-type. Otherwise, it
|
"lib/gdk-pixbuf-2.0/2.10.0/loaders.cache")))
|
||||||
;; wouldn't be able to display its own icons.
|
`("XDG_DATA_DIRS" ":" prefix
|
||||||
`("GDK_PIXBUF_MODULE_FILE" =
|
(,(string-append "/run/current-system/profile/share:"
|
||||||
(,(search-input-file
|
(getenv "XDG_DATA_DIRS"))))
|
||||||
inputs
|
'("XCURSOR_PATH" ":" prefix
|
||||||
"lib/gdk-pixbuf-2.0/2.10.0/loaders.cache")))
|
("/run/current-system/profile/share/icons"))))))))
|
||||||
`("XDG_DATA_DIRS" ":" prefix
|
|
||||||
,(cons "/run/current-system/profile/share"
|
|
||||||
(map (lambda (pkg)
|
|
||||||
(string-append pkg "/share"))
|
|
||||||
(list gtk shared-mime-info glib))))
|
|
||||||
`("GTK_PATH" ":" prefix (,gtk))
|
|
||||||
`("GIO_EXTRA_MODULES" ":" prefix (,gtk))
|
|
||||||
'("XCURSOR_PATH" ":" prefix
|
|
||||||
("/run/current-system/profile/share/icons")))))))))
|
|
||||||
(native-inputs
|
(native-inputs
|
||||||
(list exo intltool pkg-config xfce4-dev-tools))
|
(list exo
|
||||||
|
intltool
|
||||||
|
pkg-config
|
||||||
|
xfce4-dev-tools))
|
||||||
(inputs
|
(inputs
|
||||||
(list at-spi2-core
|
(list at-spi2-core
|
||||||
bash-minimal ;for wrap-program
|
bash-minimal ;for wrap-program
|
||||||
|
|
Loading…
Reference in a new issue