From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id +E0xJCq5fGe69wAAe85BDQ:P1 (envelope-from ) for ; Tue, 07 Jan 2025 05:18:34 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id +E0xJCq5fGe69wAAe85BDQ (envelope-from ) for ; Tue, 07 Jan 2025 06:18:34 +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=njpWb7yk; dkim=fail ("headers rsa verify failed") header.d=163.com header.s=s110527 header.b=BTZcAl2s; 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=1736227114; 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:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=8wuYt9FfUfW/EgYAZtOD+kQN5NA/Aa946Czj50CGsgY=; b=CqU5e8HI4Eng47bVoHmZijB6pYPoF97TuDkQhuE9f6oGPkJFxjr7II9DPSm65ycFXI9OJI Z2D50N3SoN6hbW7bnAw/E1bOH6R9aM3Fev3mORdu+ZOjZv2D/gPSTkpV9sbE7pohQ3j2nt 7Vc3DPv+eaTZ1ja+oMZegwt0B+r66gSZ7KrlR/EQ/VL42LXTMUl2UpQ7PM1jx9fEinZDC/ yDKezdoqzisz39U/y30/Mgkg1v2jPwKL3T/YWjF7NVMZTtZDkfvO+pT9YprL6R7WKru0MR OaFrjvse/RdpkAYYRRsjVtqbKE9Q1Xw1tH3TTt9u3ZedgXcXyOx8tKPFcFcjHw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=njpWb7yk; dkim=fail ("headers rsa verify failed") header.d=163.com header.s=s110527 header.b=BTZcAl2s; 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=1736227114; a=rsa-sha256; cv=none; b=SIRT6eQg1RZbOKiOtVvw3ekbIGpjE+U6h60LzRyP3h5UWJXD7y65xeLKYkLNR470gT+3r7 zvPuc9G2m7hyDzFds3ldDiov9VJg1A/MQ4vQS5PweITAU9sdUFQHHTuxJ5QMywAHTI31bt V1d9hJmmP1i+2OW9FdRVbeY6cuB+WmpXZh01+iXdBEA5WvIRQhWRo44Egow6H8WlJsf2ew 3uh9YGuXee5ePYfvNJ6s6vo1ew4pkTJ6IV68Tani1kuhoZFHGaDKvMsJUZnwpV3L8fywj3 wjpk923inHcxT6/Gh1XPpfYwtP568gOR2qnjsczjROxPXZH4xGrVf2GpUwuLJA== 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 2012E93B23 for ; Tue, 07 Jan 2025 06:18:34 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tV1yg-0005Fu-EW; Tue, 07 Jan 2025 00:18:06 -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 1tV1yd-0005Fh-7M for guix-patches@gnu.org; Tue, 07 Jan 2025 00:18:03 -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 1tV1yc-0001ZZ-VX for guix-patches@gnu.org; Tue, 07 Jan 2025 00:18:03 -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:Subject; bh=8wuYt9FfUfW/EgYAZtOD+kQN5NA/Aa946Czj50CGsgY=; b=njpWb7yk9U7IhdPPuHPzYZePhbDpWh9B4h1jCEwfcPYnhUrH/CcvhGjdEYaHZLdCbwGYJ4T2zEk0x53zInVlZhOTU9xDUl41lY+iJv9tVZj59f8iYUEq/iR1x2iXrDNnPSoM9+Du7BkezWBO6GdQj83iWk0UmzCABxo9VjcyUCuHLX//MncBq3gHPWHq3tRtEwyOTVgavIuaSCtVQ4HSyczOfxyYnOa88c/OyT8DwKqd/8hCR1HYolLW2ooWJcFJQ8StFpVo3DPpc7UW5wA2oRUqLQuY7ymPVuC7m9cFCI8XLrEH6X8UPamuEnTe83hjwoJb3DnPu8oIhL1ZNNszTw==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tV1yc-0000Hd-Q9 for guix-patches@gnu.org; Tue, 07 Jan 2025 00:18:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#75417] [PATCH] gnu: Add lightdm-tiny-greeter. Resent-From: tumashu@163.com Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 07 Jan 2025 05:18:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 75417 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 75417@debbugs.gnu.org Cc: Feng Shu X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.17362270611055 (code B ref -1); Tue, 07 Jan 2025 05:18:02 +0000 Received: (at submit) by debbugs.gnu.org; 7 Jan 2025 05:17:41 +0000 Received: from localhost ([127.0.0.1]:41441 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tV1yH-0000Gx-4E for submit@debbugs.gnu.org; Tue, 07 Jan 2025 00:17:41 -0500 Received: from lists.gnu.org ([2001:470:142::17]:50884) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tV1yD-0000Gg-V7 for submit@debbugs.gnu.org; Tue, 07 Jan 2025 00:17:39 -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 1tV1y8-0005Ds-Ac for guix-patches@gnu.org; Tue, 07 Jan 2025 00:17:32 -0500 Received: from m16.mail.163.com ([220.197.31.4]) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tV1y0-0001Tc-Fx for guix-patches@gnu.org; Tue, 07 Jan 2025 00:17:29 -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=8wuYt 9FfUfW/EgYAZtOD+kQN5NA/Aa946Czj50CGsgY=; b=BTZcAl2syGE8YSu4KkPyB J/GTiepWexi6GXTeWQ7lKv5r8+IpjryiPxo7jlGy8I4y2hx79b+dGTP7UyfA4s8n Pw/zKSAKljodsCksBJqzUapIGtIYvMVCUKKXjf/6vShJoes2iPmkkwpTftupRnx1 uxDWAU9WihvfKiIz2XxPOY= Received: from localhost.localdomain (unknown []) by gzga-smtp-mtada-g1-0 (Coremail) with SMTP id _____wD3_xvUuHxn6z+sEQ--.59877S2; Tue, 07 Jan 2025 13:17:09 +0800 (CST) From: tumashu@163.com Date: Tue, 7 Jan 2025 13:16:56 +0800 Message-ID: <20250107051656.96492-1-tumashu@163.com> X-Mailer: git-send-email 2.45.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID: _____wD3_xvUuHxn6z+sEQ--.59877S2 X-Coremail-Antispam: 1Uf129KBjvJXoWxCr4kuw4DJr1xGF13Xw48Xrb_yoW5tFWfpa yFk345Gw1rJrWfA3yxX3W29ay5GFZ3JrWxtw4Iyw17J3y5GFy8ZrWIvFZ8Cr17J3WxJw4U Wa1xXa4UuFW2k3DanT9S1TB71UUUUU7qnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDUYxBIdaVFxhVjvjDU0xZFpf9x0JUOa9xUUUUU= X-Originating-IP: [218.92.14.78] X-CM-SenderInfo: 5wxpt2lkx6il2tof0z/1tbiRRrN1Gd8sJq3VgAAsW Received-SPF: pass client-ip=220.197.31.4; envelope-from=tumashu@163.com; helo=m16.mail.163.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, UNPARSEABLE_RELAY=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Scanner: mx11.migadu.com X-Migadu-Spam-Score: 0.87 X-Spam-Score: 0.87 X-Migadu-Queue-Id: 2012E93B23 X-TUID: Luq1oX1cKB/8 From: Feng Shu * gnu/packages/display-managers.scm (lightdm-tiny-greeter): New variable. (customize-lightdm-tiny-greeter): New variable. (gnu): Export customize-lightdm-tiny-greeter. Change-Id: I4c6d9df0fcc33179692c016bea5a45eaae3b029b --- gnu/packages/display-managers.scm | 69 ++++++++++++++++++++++++++++++- 1 file changed, 68 insertions(+), 1 deletion(-) diff --git a/gnu/packages/display-managers.scm b/gnu/packages/display-managers.scm index cddd3f494f..a7578f0a8b 100644 --- a/gnu/packages/display-managers.scm +++ b/gnu/packages/display-managers.scm @@ -65,7 +65,8 @@ (define-module (gnu packages display-managers) #:use-module (gnu packages qt) #:use-module (gnu packages xdisorg) #:use-module (gnu packages xfce) - #:use-module (gnu packages xorg)) + #:use-module (gnu packages xorg) + #:export (customize-lightdm-tiny-greeter)) (define-public sddm (package @@ -592,6 +593,72 @@ (define-public lightdm-mini-greeter Display Manager and LightDM GTK3 Greeter.") (license license:gpl3)))) +(define-public lightdm-tiny-greeter + (let ((commit "6717c5853315ebd8164b1ddf85b9483f92cbcae8") + (revision "0")) + (package + (name "lightdm-tiny-greeter") + ;; Version 1.2 release in 2021, so we use a recent commit. + (version (git-version "1.2" revision commit)) + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/tobiohlala/lightdm-tiny-greeter") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1n970d6525fd918i1j09akxiacqbpxni8apkfi542bq5zg5crjbs")))) + (build-system glib-or-gtk-build-system) + (arguments + (list + #:tests? #f ; No test target. + #:phases + #~(modify-phases %standard-phases + (delete 'configure) + (add-after 'unpack 'patch-hardcoded-paths + (lambda _ + (substitute* "Makefile" + (("PREFIX = /usr") + (string-append "PREFIX = " #$output)) + (("/usr/share/xgreeters") + (string-append #$output "/share/xgreeters")) + (("cp lightdm-tiny-greeter") + "mkdir -p $(PREFIX)/bin; cp lightdm-tiny-greeter")))) + (add-after 'install 'fix-.desktop-file + (lambda _ + (substitute* (string-append + #$output "/share/xgreeters/lightdm-tiny-greeter.desktop") + (("Exec=lightdm-tiny-greeter") + (string-append "Exec=" + (string-append + #$output "/bin/lightdm-tiny-greeter"))))))))) + (native-inputs + (list autoconf automake pkg-config)) + (inputs + (list gtk+ lightdm)) + (synopsis "Tiny Greeter for LightDM") + (home-page "https://github.com/prikhi/lightdm-tiny-greeter") + (description "A tiny yet customizable GTK3 LightDM Greeter with focus on code and +minimalism.") + (license license:bsd-3)))) + +(define* (customize-lightdm-tiny-greeter #:key (session "default")) + "Make a customized lightdm-tiny-greeter package with SESSION." + (package + (inherit lightdm-tiny-greeter) + (name (string-append (package-name lightdm-tiny-greeter) "-" session)) + (arguments + (substitute-keyword-arguments + (package-arguments lightdm-tiny-greeter) + ((#:phases phases) + #~(modify-phases #$phases + (add-after 'unpack 'patch-config-h + (lambda _ + (substitute* "config.h" + (("\\*session = \"default\";") + (string-append "*session = \"" #$session "\";"))))))))))) + (define-public slim (package (name "slim") -- 2.45.2