gnu: elogind: Adjust patch for pkttyagent.

* gnu/packages/freedesktop.scm (elogind/fixed): New variable.
(elogind): Replace with elogind/fixed.

Change-Id: I9c474291816aee7464db5cbe9398b589479e79cf
Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
Modified-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
This commit is contained in:
Sergey Trofimov 2025-05-16 19:28:30 +02:00 committed by Maxim Cournoyer
parent 28b2b7e6d7
commit 7ece7095e9
No known key found for this signature in database
GPG key ID: 1260E46482E63562

View file

@ -879,6 +879,7 @@ the freedesktop.org XDG Base Directory specification.")
(package
(name "elogind")
(version "255.17")
(replacement elogind/fixed)
(source (origin
(method git-fetch)
(uri (git-reference
@ -1065,6 +1066,20 @@ the org.freedesktop.login1 interface over the system bus, allowing other parts
of a the system to know what users are logged in, and where.")
(license license:lgpl2.1+)))
(define-public elogind/fixed
(hidden-package
(package
(inherit elogind)
(arguments
(substitute-keyword-arguments (package-arguments elogind)
((#:phases phases)
#~(modify-phases #$phases
(replace 'fix-pkttyagent-path
(lambda _
(substitute* "meson.build"
(("bindir / 'pkttyagent'")
"'/run/current-system/profile/bin/pkttyagent'")))))))))))
(define-public basu
(package
(name "basu")