mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 21:38:07 -05:00
gnu: kmscon: Enable elogind support.
* gnu/packages/terminals.scm (kmscon)[source]: Add 'modules' and 'snippet'.
This commit is contained in:
parent
7326944b5c
commit
5acf00f990
1 changed files with 17 additions and 1 deletions
|
@ -209,7 +209,23 @@ (define-public kmscon
|
|||
"kmscon-" version ".tar.xz"))
|
||||
(sha256
|
||||
(base32
|
||||
"0axfwrp3c8f4gb67ap2sqnkn75idpiw09s35wwn6kgagvhf1rc0a"))))
|
||||
"0axfwrp3c8f4gb67ap2sqnkn75idpiw09s35wwn6kgagvhf1rc0a"))
|
||||
(modules '((guix build utils)))
|
||||
(snippet
|
||||
;; Use elogind instead of systemd.
|
||||
'(begin
|
||||
(substitute* "configure"
|
||||
(("libsystemd-daemon libsystemd-login")
|
||||
"libelogind"))
|
||||
(substitute* "src/uterm_systemd.c"
|
||||
(("#include <systemd/sd-login.h>")
|
||||
"#include <elogind/sd-login.h>")
|
||||
;; We don't have this header.
|
||||
(("#include <systemd/sd-daemon\\.h>")
|
||||
"")
|
||||
;; Replace the call to 'sd_booted' by the truth value.
|
||||
(("sd_booted\\(\\)")
|
||||
"1"))))))
|
||||
(build-system gnu-build-system)
|
||||
(native-inputs
|
||||
`(("pkg-config" ,pkg-config)
|
||||
|
|
Loading…
Reference in a new issue