From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id sK6QOEVjcmfZDwEAqHPOHw:P1 (envelope-from ) for ; Mon, 30 Dec 2024 09:09:26 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id sK6QOEVjcmfZDwEAqHPOHw (envelope-from ) for ; Mon, 30 Dec 2024 10:09:25 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=rsxis8Ck; dkim=fail ("headers rsa verify failed") header.d=163.com header.s=s110527 header.b=B6vc4LCv; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=163.com (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1735549765; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=pWJXTeSYY5N0XTTJ/pUcJAhDqaK2qq2MYgTBpW/mF7k=; b=qlCt0pk3RyeVWyNn342ot5c/UPvcD4KxuSa7yKI0DjCE1G6voGNc7e1B2/crHWtFKzdSOX XAoWwRyNAxHHOi/N7o1EVz2W1HOXMoeEuOEoN1rK1EsVUu+Ba4AEn10Gu7pLq8AI3fjrxs GdnVC8Bk1yGQFo8dAEM7DxrzkZ3gAxM/nAKO7rRqeITCNwAYzXq0EczNPDgJqpR1YoQhD1 7+DxCG0nigNxyomCxgj4LQyYCmEvjem8yJ51vSRVbz8RqwuDJ4eiaMyWUNhqknq9ZfvZ7z a8EQ4geLvPvOkG1Y1mn3EehrmTFFquTRjtR1gV+WNFfkTZDt4Lp3domZwMjJXw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=rsxis8Ck; dkim=fail ("headers rsa verify failed") header.d=163.com header.s=s110527 header.b=B6vc4LCv; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=163.com (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1735549765; a=rsa-sha256; cv=none; b=X6Vt4gkNVBwCGkS7C1k83xEe+XRKg94+YSWRbr1XekmzPp8UUkSKR9N3LeEGI4f3Z7q4+t 61PQETxP5fUxEscXvxchiE5784S3rNZ3a91INlF+QHaCygmqb0MoX8qYMR+mMfRjfvEAx1 zVjC1dWo7uD6SIII1r7vbwAxMVWriZgdfp86MKsEPXxIdS71jD9sXDGw+nD9dW9Wehkpph RCQJHwGuSYvFs8Aj4oEqk66xC9a0hsCu/9sQDzkjNmuk9tyETCkE3Wyd12cIzZuSisDGKC Uogc+w6KTQbARD6sA8i/y0Auwrb7N65l0hC203JssnZRwLy86x9FWaT/+9lq5w== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 5908276F1 for ; Mon, 30 Dec 2024 10:09:25 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tSBlu-0006pT-7Q; Mon, 30 Dec 2024 04:09:10 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tSBlp-0006pB-Ts for guix-patches@gnu.org; Mon, 30 Dec 2024 04:09:06 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tSBlp-0007KP-F3 for guix-patches@gnu.org; Mon, 30 Dec 2024 04:09:05 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:From:To:In-Reply-To:References:Subject; bh=pWJXTeSYY5N0XTTJ/pUcJAhDqaK2qq2MYgTBpW/mF7k=; b=rsxis8Ck2WFuLhqhvK7VCN0iNItGLYt+z1SSTpj4kC+z1LqQoz9Wc5hYL3lakyqMO6lWCmgtPjzDHhydzB4yCsD/Sj0uYj1aQq7uCF+89vddnWhQ2IQ9vz3AIVAff7+e8QjbRijhMJGtOwn9cefu2A/Fk2IofBKOJl9xGAY4rLnJzvYMwD/GwRfeGD27UpNdsEzS9Cu5sJgG9i9Pkm9+FQ0cGnzSRO1z7bdQc1OFwJdAHZ/MRinrS0vFKQ9Jg48B9CqBmVeP7kdTVw3+QJ3kQctQ/FGf0jvMeq5noLNSR+BVaEAD8vTyO8t12JMe3oWyOz9/NUER2NpGszLiG/1PFA==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tSBlm-0005Fc-H4; Mon, 30 Dec 2024 04:09:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#75186] [PATCH v2] gnu: Add lightdm-pantheon-greeter. References: <20241230070516.44067-1-tumashu@163.com> In-Reply-To: <20241230070516.44067-1-tumashu@163.com> Resent-From: tumashu@163.com Original-Sender: "Debbugs-submit" Resent-CC: tumashu@163.com, guix-patches@gnu.org Resent-Date: Mon, 30 Dec 2024 09:09:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 75186 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 75186@debbugs.gnu.org Cc: Feng Shu , tumashu@163.com X-Debbugs-Original-Xcc: tumashu@163.com Received: via spool by 75186-submit@debbugs.gnu.org id=B75186.173554970920123 (code B ref 75186); Mon, 30 Dec 2024 09:09:02 +0000 Received: (at 75186) by debbugs.gnu.org; 30 Dec 2024 09:08:29 +0000 Received: from localhost ([127.0.0.1]:57298 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tSBlE-0005EU-Mj for submit@debbugs.gnu.org; Mon, 30 Dec 2024 04:08:29 -0500 Received: from m16.mail.163.com ([220.197.31.3]:33612) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tSBlB-0005EG-G2 for 75186@debbugs.gnu.org; Mon, 30 Dec 2024 04:08:27 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Date:Message-ID:MIME-Version; bh=pWJXT eSYY5N0XTTJ/pUcJAhDqaK2qq2MYgTBpW/mF7k=; b=B6vc4LCv2ZDi0OQTjTTTE 0OHdw72M5bWa5wdjcKBidmt7E06Jx6gECju4McYoAHMitaJwc1Ljs6mM6a5YsT2G 1vjyIBSVllc1RL/LN0ozpd8mVS5BxYFXTmkqw3EebrcR7YHHiES9pu+Z0DRzXOi0 18P/H+yhkVaJ+gyS7bLazI= Received: from localhost.localdomain (unknown []) by gzga-smtp-mtada-g1-2 (Coremail) with SMTP id _____wD3d5ICY3Jnneq_Cg--.48443S2; Mon, 30 Dec 2024 17:08:19 +0800 (CST) From: tumashu@163.com Date: Mon, 30 Dec 2024 17:08:03 +0800 Message-ID: <20241230090806.49024-1-tumashu@163.com> X-Mailer: git-send-email 2.45.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID: _____wD3d5ICY3Jnneq_Cg--.48443S2 X-Coremail-Antispam: 1Uf129KBjvJXoWxCr4kuw1fWFyktrW8tryDAwb_yoWrJrWUpF WFkF15Kwn5J3s3Z3yxX3W2kF4Yva93tFyUt3s3ur1akw45u340vrW2y398Ar1xJ3Z7CayD Ww4jq3W7CFyDCrJanT9S1TB71UUUUU7qnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDUYxBIdaVFxhVjvjDU0xZFpf9x0JU-a9sUUUUU= X-Originating-IP: [218.92.14.78] X-CM-SenderInfo: 5wxpt2lkx6il2tof0z/1tbiRQjF1GdyX5VakAAAsJ X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Queue-Id: 5908276F1 X-Migadu-Scanner: mx13.migadu.com X-Migadu-Spam-Score: -3.29 X-Spam-Score: -3.29 X-TUID: PLBZArTJTQTH From: Feng Shu * 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