mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 05:18:07 -05:00
gnu: lightdm-gtk-greeter: Wrap binary.
* gnu/package/display-managers.scm (lightdm-gtk-greeter)[inputs]: Add shared-mime-info. [arguments]: Add "wrap-program" phase. Signed-off-by: Ricardo Wurmus <rekado@elephly.net>
This commit is contained in:
parent
13b012754e
commit
bed695aa94
1 changed files with 17 additions and 1 deletions
|
@ -219,13 +219,29 @@ (define-public lightdm-gtk-greeter
|
|||
out "/share/xgreeters/lightdm-gtk-greeter.desktop")
|
||||
(("Exec=lightdm-gtk-greeter")
|
||||
(string-append "Exec=" out "/sbin/lightdm-gtk-greeter")))
|
||||
#t))))))
|
||||
#t)))
|
||||
(add-after 'fix-.desktop-file 'wrap-program
|
||||
;; Mimic glib-or-gtk build system
|
||||
;; which doesn't wrap files in /sbin
|
||||
(lambda* (#:key outputs inputs #:allow-other-keys)
|
||||
(let ((gtk (assoc-ref inputs "gtk+")))
|
||||
(wrap-program (string-append (assoc-ref outputs "out")
|
||||
"/sbin/lightdm-gtk-greeter")
|
||||
`("XDG_DATA_DIRS" ":" prefix
|
||||
,(cons "/run/current-system/profile/share"
|
||||
(map (lambda (pkg)
|
||||
(string-append (assoc-ref inputs pkg) "/share"))
|
||||
'("gtk+" "shared-mime-info" "glib"))))
|
||||
`("GTK_PATH" ":" prefix (,gtk))
|
||||
`("GIO_EXTRA_MODULES" ":" prefix (,gtk))))
|
||||
#t)))))
|
||||
(native-inputs
|
||||
`(("exo" ,exo)
|
||||
("intltool" ,intltool)
|
||||
("pkg-config" ,pkg-config)))
|
||||
(inputs
|
||||
`(("lightdm" ,lightdm)
|
||||
("shared-mime-info" ,shared-mime-info)
|
||||
("at-spi2-core" ,at-spi2-core)
|
||||
("gtk+" ,gtk+)))
|
||||
(synopsis "GTK+ greeter for LightDM")
|
||||
|
|
Loading…
Reference in a new issue