From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id SHGUEefcEmESHgEAgWs5BA (envelope-from ) for ; Tue, 10 Aug 2021 22:09:11 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id wA5RDefcEmEgXwAAB5/wlQ (envelope-from ) for ; Tue, 10 Aug 2021 20:09:11 +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 93A7F6702 for ; Tue, 10 Aug 2021 22:09:10 +0200 (CEST) Received: from localhost ([::1]:52344 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mDY3h-0000ss-K9 for larch@yhetil.org; Tue, 10 Aug 2021 16:09:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42518) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mDY3b-0000q4-8o for guix-patches@gnu.org; Tue, 10 Aug 2021 16:09:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:49346) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mDY3b-0007Ck-1s for guix-patches@gnu.org; Tue, 10 Aug 2021 16:09:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mDY3a-0007By-TH for guix-patches@gnu.org; Tue, 10 Aug 2021 16:09:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#49969] [PATCH v2 3/7] gnu: freedesktop: Add greetd 0.7.0 Resent-From: muradm Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 10 Aug 2021 20:09:02 +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: 49969@debbugs.gnu.org Received: via spool by 49969-submit@debbugs.gnu.org id=B49969.162862610927566 (code B ref 49969); Tue, 10 Aug 2021 20:09:02 +0000 Received: (at 49969) by debbugs.gnu.org; 10 Aug 2021 20:08:29 +0000 Received: from localhost ([127.0.0.1]:60882 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mDY2y-0007AO-75 for submit@debbugs.gnu.org; Tue, 10 Aug 2021 16:08:28 -0400 Received: from mail-ej1-f47.google.com ([209.85.218.47]:36557) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mDY2p-00079K-2G for 49969@debbugs.gnu.org; Tue, 10 Aug 2021 16:08:19 -0400 Received: by mail-ej1-f47.google.com with SMTP id o23so4489338ejc.3 for <49969@debbugs.gnu.org>; Tue, 10 Aug 2021 13:08:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=muradm-net.20150623.gappssmtp.com; s=20150623; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=VNGnseJDWam81ZBvjmqRKojMs5N5/djUyydulj9nhTg=; b=otJZRG1Uc03vdRMfOTaqJlsHFkWKDPbT//+6QDdQQOu/V1OrEvxSUQIZg8LfJOjz5y I+ixPsU56rWkjYX9NIytEHcvyTKo+IQv+PW0ryB1v4081BZvJwqmfIGmzJ70VGQy9/Fa jQ9lueKVEj5lcflG7jiT4XweLPBOhRcrcEd+/TK89rpexBUDrEIEoKOETRakpH2gqreI 4cTwZi5QJhbXq+mtSA/xqAHxPDdgJOWFWjuTh5R68CbTw02RIP59QdTvnN1UMP6vKhbH AXWBH7BLrsBfeWd7wrVxoUw2hPFG4H4Ope1QDb3vrgVVZyGsHFgUq2YFUrBmVA2nyDcx MmNQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=VNGnseJDWam81ZBvjmqRKojMs5N5/djUyydulj9nhTg=; b=kZqV9vRo0KlXl8ODKnF0BSlY7Pe7+mzpr4ktuM4cSbiTlbiBAoHkzot8+D9g07EGMI UbgHrYZ2/Fzs7aZ7Ql4OO9T8+WZOYhHjrI1GPIzU9evCGYuJF6rigYnzsxLnEln6n+X2 /zPchY0FJEkLX8l5eM/QPnrjsjqu5DsHranFAwS4P1LyDJnXaXPFF+g0qCvMGRDPDQpe 7vbCHx/U/+i0FW9s3MP/+maWmMuRLWMp0iAzNVVmxvQnu/2VEoFZ8CfquS0NAlwLf/S7 pGMSo9gbNjwKja9bRlLJbsxsZcTA+EURuL4+7ObweNbpck/H9lzpH6Y0ivOP+nwzDBob y4zA== X-Gm-Message-State: AOAM531kj6gYC8PE6/T67Cj5llLdEo10BZ71+ORCvHIheEoHXK9kELQH oGBHLpEYE+kZSuyrRUN0M0idZV1RdzQ/7w== X-Google-Smtp-Source: ABdhPJyfs9qnbuIzv8Td3WAv1Dg1JDuVH95Bvky8g51iv8JZyLHYKwCg+jkVzsXzUx3GOjTKsy/YTw== X-Received: by 2002:a17:906:fa10:: with SMTP id lo16mr268603ejb.154.1628626089270; Tue, 10 Aug 2021 13:08:09 -0700 (PDT) Received: from localhost.localdomain ([31.142.54.188]) by smtp.gmail.com with ESMTPSA id qa34sm7247582ejc.120.2021.08.10.13.08.08 for <49969@debbugs.gnu.org> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Aug 2021 13:08:08 -0700 (PDT) From: muradm Date: Tue, 10 Aug 2021 23:07:52 +0300 Message-Id: <20210810200756.9581-3-mail@muradm.net> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210810193626.9186-1-mail@muradm.net> References: <20210810193626.9186-1-mail@muradm.net> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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=1628626151; 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: 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=VNGnseJDWam81ZBvjmqRKojMs5N5/djUyydulj9nhTg=; b=ok4iO7M3JCkoM1bnMuJUSVhCuPnHC8SqLTBJPD5to9HQrcI9QaSRk1SSjxLP8dcT79/Kwf I6F3vsvvPZbpowRRaCZCfkkuikqHnaZvGL5bahwLXFqxS/F98Z3nafRYiFNny8YBdVTkgk 5SO0mHTC+6SJRRPzV1G8RkmlA++Xb6y3mnR6ei4Piq+hDWeozrkA/xKhXvXBlC6DxoHZoW HC15DjP6zY2rEdxlcEBeiSP4uwp8HqL1o4vOEjc901uGHnx2HyMOwMt75kZLN2gu+RGODh 31gl1vs3mpN55b2mjmaOfbpYtpFO9/kVqlYkZ9+ZhW7Jm4NgqsKbt3Gahibttg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1628626151; a=rsa-sha256; cv=none; b=qKZJ2P2t441JH1bFuXNc2VkewINQh3GKChgc9IZVBWd+qUSU9w6JlRgt6X0QcReRVuwZFH ZlM8RrV2/JGqukBQy5kQ3tSIjTcYETaTeE7EzComl76KhPGXSuLRKTSCg9FB9VNlt/mM5A Gn1ouE3DFyw3E9dEYRtr2AdawKvV8Bkzf7Yp/t9+riTfKArTVxJeIlhUm3zgIJ97klg+yM yvbTSgPMr7d08QRfEpurQjENNygFCohV1GDlRFNDo1Vjb/UBYF5bo+tGJWX6ItkIYHw26C ioGmBuxgK6BN9qWegpVGefRwEHZ5qPgEJrRoVaF9LeVsQGH5RKPreSnm8dx5hw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=muradm-net.20150623.gappssmtp.com header.s=20150623 header.b=otJZRG1U; dmarc=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: -0.41 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=muradm-net.20150623.gappssmtp.com header.s=20150623 header.b=otJZRG1U; dmarc=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: 93A7F6702 X-Spam-Score: -0.41 X-Migadu-Scanner: scn1.migadu.com X-TUID: 57lqfU7aFIuC * 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 © 2020 Raghav Gururajan ;;; Copyright © 2021 Brendan Tildesley ;;; Copyright © 2021 pineapples +;;; Copyright © 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))) +(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 "0lmwr5ld9x2wlq00i7mjgm9by8zndiq9girj8g93k0kww9zbgr3g")))) + (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) + (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) + #t)))))) + (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.") + (description + "greetd is a minimal and flexible login manager daemon +that makes no assumptions about what you want to launch.") + (license license:gpl3+))) + (define-public packagekit (package (name "packagekit") -- 2.32.0