From: tumashu@163.com
To: 75186@debbugs.gnu.org
Cc: Feng Shu <tumashu@163.com>, tumashu@163.com
Subject: [bug#75186] [PATCH v2] gnu: Add lightdm-pantheon-greeter.
Date: Mon, 30 Dec 2024 17:08:03 +0800 [thread overview]
Message-ID: <20241230090806.49024-1-tumashu@163.com> (raw)
In-Reply-To: <20241230070516.44067-1-tumashu@163.com>
From: Feng Shu <tumashu@163.com>
* gnu/packages/display-managers.scm (lightdm-pantheon-greeter): New variable.
Change-Id: I91b55faee57ba866551a7f92d73e25bd2281efdf
---
gnu/packages/display-managers.scm | 77 +++++++++++++++++++++++++++++++
1 file changed, 77 insertions(+)
diff --git a/gnu/packages/display-managers.scm b/gnu/packages/display-managers.scm
index df5fc0a857..bb639e9e06 100644
--- a/gnu/packages/display-managers.scm
+++ b/gnu/packages/display-managers.scm
@@ -60,6 +60,7 @@ (define-module (gnu packages display-managers)
#:use-module (gnu packages image)
#:use-module (gnu packages kde-frameworks)
#:use-module (gnu packages linux)
+ #:use-module (gnu packages pantheon)
#:use-module (gnu packages pkg-config)
#:use-module (gnu packages python)
#:use-module (gnu packages qt)
@@ -362,6 +363,82 @@ (define-public sugar-light-sddm-theme
experience for your users, your family and yourself")
(license license:gpl3+)))
+(define-public lightdm-pantheon-greeter
+ (package
+ (name "lightdm-pantheon-greeter")
+ ;; Versiton 8.0.0 can not build for mutter < 46 in guix, see:
+ ;; https://github.com/elementary/greeter/issues/778
+ (version "7.0.0")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/elementary/greeter")
+ (commit version)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "1gz42852j50jk2apk16lxl34zw39knwy6fgkjyhqlgl0q1l6xz4v"))))
+ (build-system meson-build-system)
+ (arguments
+ (list
+ #:glib-or-gtk? #t
+ #:parallel-build? #f ; Enable this option will build fail.
+ #:configure-flags
+ #~(list
+ ;; 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"))
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'glib-or-gtk-wrap 'custom-wrap
+ (lambda _
+ (for-each (lambda (prog)
+ (wrap-script (string-append #$output prog)
+ ;; Wrap GDK_PIXBUF_MODULE_FILE, so that the SVG loader is
+ ;; available at all times even outside of profiles, such as
+ ;; when used in the lightdm-service-type. Otherwise, it
+ ;; wouldn't be able to display its own icons.
+ `("GDK_PIXBUF_MODULE_FILE" =
+ (,(string-append #$output "lib/gdk-pixbuf-2.0/2.10.0/loaders.cache")))
+ `("XDG_DATA_DIRS" ":" prefix
+ (,(string-append "/run/current-system/profile/share:"
+ (getenv "XDG_DATA_DIRS"))))
+ '("XCURSOR_PATH" ":" prefix
+ ("/run/current-system/profile/share/icons"))))
+ '("/bin/io.elementary.greeter"
+ "/bin/io.elementary.greeter-compositor"))))
+ (add-after 'install 'fix-.desktop-file
+ (lambda _
+ (substitute* (string-append #$output
+ "/share/xgreeters/io.elementary.greeter.desktop")
+ (("Exec=io.elementary.greeter")
+ ;; NOTE: io.elementary.greeter-compositor do not work in guix
+ ;; at the moment, for it use wayland.
+ (string-append "Exec=" #$output "/bin/io.elementary.greeter"))))))))
+ (native-inputs
+ (list gettext-minimal
+ (list glib "bin")
+ pkg-config
+ vala))
+ (inputs
+ (list accountsservice
+ desktop-file-utils
+ glib
+ gnome-desktop
+ gnome-settings-daemon
+ granite-6
+ gtk+
+ guile-3.0
+ libhandy
+ libx11
+ lightdm
+ mutter))
+ (synopsis "A greeter from the elementary OS project")
+ (home-page "https://github.com/elementary/greeter")
+ (description "Login and Lock Screen greeter for elementary OS and
+Pantheon, using LightDM.")
+ (license license:gpl3)))
+
(define-public lightdm
(package
(name "lightdm")
--
2.45.2
prev parent reply other threads:[~2024-12-30 9:09 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-30 7:05 [bug#75186] [PATCH] gnu: Add lightdm-pantheon-greeter tumashu
2024-12-30 9:08 ` tumashu [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20241230090806.49024-1-tumashu@163.com \
--to=tumashu@163.com \
--cc=75186@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).