From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 4BmsGO60E2HGLAEAgWs5BA (envelope-from ) for ; Wed, 11 Aug 2021 13:30:54 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id KKNDFO60E2EuagAAB5/wlQ (envelope-from ) for ; Wed, 11 Aug 2021 11:30:54 +0000 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 DE4F124C0 for ; Wed, 11 Aug 2021 13:30:53 +0200 (CEST) Received: from localhost ([::1]:52684 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mDmRg-0007ET-NZ for larch@yhetil.org; Wed, 11 Aug 2021 07:30:52 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45858) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mDmQu-0006hl-ED for guix-patches@gnu.org; Wed, 11 Aug 2021 07:30:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:50294) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mDmQs-0001Fg-20 for guix-patches@gnu.org; Wed, 11 Aug 2021 07:30:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mDmQr-0003DR-SR for guix-patches@gnu.org; Wed, 11 Aug 2021 07:30:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#49969] [PATCH v2 3/7] gnu: freedesktop: Add greetd 0.7.0 Resent-From: Xinglu Chen Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 11 Aug 2021 11:30:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49969 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: muradm , 49969@debbugs.gnu.org Received: via spool by 49969-submit@debbugs.gnu.org id=B49969.162868136312292 (code B ref 49969); Wed, 11 Aug 2021 11:30:01 +0000 Received: (at 49969) by debbugs.gnu.org; 11 Aug 2021 11:29:23 +0000 Received: from localhost ([127.0.0.1]:33607 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mDmQ9-0003C6-Iw for submit@debbugs.gnu.org; Wed, 11 Aug 2021 07:29:23 -0400 Received: from h87-96-130-155.cust.a3fiber.se ([87.96.130.155]:54722 helo=mail.yoctocell.xyz) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mDmQ7-0003Bs-JB for 49969@debbugs.gnu.org; Wed, 11 Aug 2021 07:29:16 -0400 From: Xinglu Chen DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=yoctocell.xyz; s=mail; t=1628681347; bh=sYzCCfHDUg2LuaOrjy5pVFc9N9LKSUzVud/2tgXI5vI=; h=From:To:Subject:In-Reply-To:References:Date; b=Ibe4c2y5P1KiJZ89srZGYg2xbNxKNke+AYXWvgaR4ZU/gGo+ObaqGkxHrdaqC/msw C+vgFHS4285nmwlFGWXGOpQ1dRw0ZQXBexkhq6BYFr6tFU/vNbOP9hSWMZtG3os7gC OTRCWgIEnGro6SAZaAQ8JAyZPstgPK4vI22CN64I= In-Reply-To: <20210810200756.9581-3-mail@muradm.net> References: <20210810193626.9186-1-mail@muradm.net> <20210810200756.9581-3-mail@muradm.net> Date: Wed, 11 Aug 2021 13:29:06 +0200 Message-ID: <87im0c1app.fsf@yoctocell.xyz> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" 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" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1628681454; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: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=oUIaiodj1Bd/o8Qe7+DKfFy0oIS99+fPp0rFAd1ikPg=; b=BmOi3wBSKbsYePpkY/aw56Pw9YLWW/6lnACi/55QEeKHUPp6+vlirAojGM7PNh+ZvuYMgK h1l1l4I/sgT0gkgjpFjrCFEDPo81KTDNzKKr3V784uyHF3HgJH3CpcBmM+RohIZjwY5QO8 VBJ7UMeLEKBJolIsxzTa5EI/kxOIZu9DqPSHL4Rh4yqJLjC+EBTLppDS3Z0yNLl78FQGx5 3knG8czPDvEGeYulF1gXVdeG+qRHJvB3ZyuiDspEY3irSr8/0/EeT4P665Rkbzi5yRfPwo ona6lELSc/aXezWVVULH05jVo2qVwGTNzGACZV0wl7EBmkLaaHLYJMfkon/UiA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1628681454; a=rsa-sha256; cv=none; b=M3fn3lpxH/7RGrlHV4pXGd/1bbVPtsK7q82ZKVaI0/sD7JEsSyLyBWGjEmJGoesK8jMfvn Ypwmih2HqaVNvSQtX8gL/gMWjj5aPhmntzW6YvO5rp1Brk7GNxP51q11mS4Hcg3TeYw8CA gnAbcnCxZE4PsPvHM3+lVbU0E2Ix9gVLNbbbyNmDC2VpDyACX2KjweFEXV8Snoh7/7bzE4 GWt8+Yh1X/ua5NfpmHuCmI73U/nMpjvVlouWyjfRfDo0759NCDs/3SW1I9/mdM2sL3k/Zd PAtk/qd1OLe0z2AOLldRCg3JcSDkvrKcLhgpu/QPuftKt8PpOmzkfQ5sO2XsYA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=yoctocell.xyz header.s=mail header.b=Ibe4c2y5; dmarc=fail reason="SPF not aligned (relaxed)" header.from=yoctocell.xyz (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: -3.41 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=yoctocell.xyz header.s=mail header.b=Ibe4c2y5; dmarc=fail reason="SPF not aligned (relaxed)" header.from=yoctocell.xyz (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: DE4F124C0 X-Spam-Score: -3.41 X-Migadu-Scanner: scn1.migadu.com X-TUID: Vavk1vVoFWQj --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On Tue, Aug 10 2021, muradm wrote: > * gnu/packages/freedesktop.scm (greetd): Add greetd 0.7.0 > --- > gnu/packages/freedesktop.scm | 80 ++++++++++++++++++++++++++++++++++++ > 1 file changed, 80 insertions(+) > > diff --git a/gnu/packages/freedesktop.scm b/gnu/packages/freedesktop.scm > index 693a79c738..631d36e765 100644 > --- a/gnu/packages/freedesktop.scm > +++ b/gnu/packages/freedesktop.scm > @@ -24,6 +24,7 @@ > ;;; Copyright =C2=A9 2020 Raghav Gururajan > ;;; Copyright =C2=A9 2021 Brendan Tildesley > ;;; Copyright =C2=A9 2021 pineapples > +;;; Copyright =C2=A9 2021 muradm > ;;; > ;;; This file is part of GNU Guix. > ;;; > @@ -46,6 +47,7 @@ > #:use-module (guix packages) > #:use-module (guix download) > #:use-module (guix git-download) > + #:use-module (guix build-system cargo) > #:use-module (guix build-system cmake) > #:use-module (guix build-system gnu) > #:use-module (guix build-system meson) > @@ -62,6 +64,7 @@ > #:use-module (gnu packages check) > #:use-module (gnu packages cmake) > #:use-module (gnu packages compression) > + #:use-module (gnu packages crates-io) > #:use-module (gnu packages cryptsetup) > #:use-module (gnu packages databases) > #:use-module (gnu packages disk) > @@ -862,6 +865,83 @@ that require it. It also provides a universal seat = management library that > allows applications to use whatever seat management is available.") > (license license:expat))) >=20=20 > +(define-public greetd > + (package > + (name "greetd") > + (version "0.7.0") > + (home-page "https://git.sr.ht/~kennylevinsen/greetd") > + (source (origin > + (method git-fetch) > + (uri (git-reference > + (url home-page) > + (commit version))) > + (file-name (git-file-name name version)) > + (sha256 > + (base32 "0lmwr5ld9x2wlq00i7mjgm9by8zndiq9girj8g93k0kww9zb= gr3g")))) > + (build-system cargo-build-system) > + (arguments > + `(#:cargo-inputs > + (("rust-nix" ,rust-nix-0.17) > + ("rust-pam-sys" ,rust-pam-sys-0.5.6) > + ("rust-rpassword" ,rust-rpassword-4) > + ("rust-users" ,rust-users-0.9) > + ("rust-serde" ,rust-serde-1) > + ("rust-serde-json" ,rust-serde-json-1) > + ("rust-libc" ,rust-libc-0.2) > + ("rust-tokio" ,rust-tokio-0.2) > + ("rust-getopts" ,rust-getopts-0.2) > + ("rust-thiserror" ,rust-thiserror-1) > + ("rust-async-trait" ,rust-async-trait-0.1) > + ("rust-enquote" ,rust-enquote-1)) > + #:phases > + (modify-phases %standard-phases > + ;; once https://todo.sr.ht/~kennylevinsen/greetd/25 > + ;; is solved, below patch can be removed > + (add-after 'unpack 'patch-terminal-switch > + (lambda* (#:key inputs #:allow-other-keys) > + (substitute* "greetd/src/server.rs" > + (("switch: true,") > + "switch: false,")))) > + (delete 'package) > + (replace 'install > + (lambda* (#:key inputs outputs #:allow-other-keys) > + (let* ((out (assoc-ref outputs "out")) > + (bin (string-append out "/bin")) > + (sbin (string-append out "/sbin")) > + (share (string-append out "/share")) > + (man (string-append share "/man")) > + (man1 (string-append man "/man1")) > + (man5 (string-append man "/man5")) > + (man7 (string-append man "/man7")) > + (release "target/release") > + (greetd-bin (string-append release "/greetd")) > + (agreety-bin (string-append release "/agreety"))) > + (install-file greetd-bin sbin) > + (install-file agreety-bin bin) > + (mkdir-p man1) > + (mkdir-p man5) > + (mkdir-p man7) No need to =E2=80=98mkdir-p=E2=80=99 if you will call =E2=80=98install-file= =E2=80=99 on the directory. > + (with-directory-excursion "man" > + (system "scdoc < greetd-1.scd > greetd.1") > + (system "scdoc < greetd-5.scd > greetd.5") > + (system "scdoc < greetd-ipc-7.scd > greetd-ipc.7") > + (system "scdoc < agreety-1.scd > agreety.1")) > + (install-file "man/greetd.1" man1) > + (install-file "man/greetd.5" man5) > + (install-file "man/greetd-ipc.7" man7) > + (install-file "man/agreety.1" man1) Why not put these four lines inside the (with-directory-excursion "man" =E2=80=A6) form, and remove the "man" prefix? > + #t)))))) Phases don=E2=80=99t need to return #t once the =E2=80=98core-updates=E2=80= =99 branch gets merged. > + (native-inputs > + `(("linux-pam" ,linux-pam) > + ("scdoc" ,scdoc))) > + (synopsis > + "greetd is a minimal and flexible login manager daemon > +that makes no assumptions about what you want to launch.") The synosis is a bit long, maybe Minimal and flexible login manager daemon > + (description > + "greetd is a minimal and flexible login manager daemon > +that makes no assumptions about what you want to launch.") =E2=80=9Cwhat you want to launch=E2=80=9D sounds a bit vague, is it referri= ng to desktop environment, window manager, or something else? --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQJJBAEBCAAzFiEEAVhh4yyK5+SEykIzrPUJmaL7XHkFAmETtIMVHHB1YmxpY0B5 b2N0b2NlbGwueHl6AAoJEKz1CZmi+1x5m84P/j/tu5uMTWDt79GVQUok5vcWdBjJ Mzrehd6oSTMG3xzV8CJQtJ02r81faxlTzNiAAc2RxYj9uzSKC4XwU8u4ZUbdSrlf EqN4NtaM2ooC7aJZS8JNvAZWIDQUTZ6Y1oRBqvkBRrSKu/gP+cGFyBnM1rahXwrK jgzYWhRZeTuDA3zI05mx8oBRruKqL/KqeI9YhWD6eWfluSupzqqNCMdeDeSD3xL1 5Dq7dnCfmbFiznUq+Q1IqODpgS8el7QD5Xs2CXn/yHvr7cJxOj5pIpJYfkXm9vjW /NJCB3N0Y1SAJ+iiulB0QHMJMZvng0fkpnYspA0G0+OetabhxzyfIfXzzkqFsJ+T KtWmbOu507AvWnfedyrvuTqtLcaNg2cS8kmcseDNoHU55/Qqvn7ajB5swFGf9JMJ zGfLIzDiD9v9h23ulxr+huXHaE3jTwSv1Q6TdGn/z+Wov7YPvleOD+HzIyqL18Zz 9Xn1ktdoZ8NJ/jmSgAjuV2Ct6jnnUesGkkowpkwcTVpGjk5rJVG18RiUVU3sqV5M 47AwJ2O4OwdhYhDpfZSbDt1WzCYCo0ABlBBvw9STnaF5u+LsPpJYbq4Nazpa6HcV 9CtoFmCM8x66FfEX8iAC9MPJxEZxLWnjZS9ilFccvbTGDfxzEPKywirMBDwAe1Or /Kgn71SuoHfr8XvN =zh3E -----END PGP SIGNATURE----- --=-=-=--