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 6DWFIKchQmHfDwEAgWs5BA (envelope-from ) for ; Wed, 15 Sep 2021 18:39:03 +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 SGY/HKchQmFsZwAAB5/wlQ (envelope-from ) for ; Wed, 15 Sep 2021 16:39:03 +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 BCCDE111F8 for ; Wed, 15 Sep 2021 18:39:01 +0200 (CEST) Received: from localhost ([::1]:53934 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mQXw3-0001LH-RB for larch@yhetil.org; Wed, 15 Sep 2021 12:39:00 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59692) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mQXoN-0003gF-Lt for guix-patches@gnu.org; Wed, 15 Sep 2021 12:31:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:41541) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mQXoN-0004oC-A0 for guix-patches@gnu.org; Wed, 15 Sep 2021 12:31:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mQXoN-0003E4-6x for guix-patches@gnu.org; Wed, 15 Sep 2021 12:31:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#49969] [PATCH v7 2/7] gnu: admin: Add greetd 0.8.0. Resent-From: muradm Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 15 Sep 2021 16:31:03 +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.163172341212171 (code B ref 49969); Wed, 15 Sep 2021 16:31:03 +0000 Received: (at 49969) by debbugs.gnu.org; 15 Sep 2021 16:30:12 +0000 Received: from localhost ([127.0.0.1]:53064 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mQXnX-0003A8-Ih for submit@debbugs.gnu.org; Wed, 15 Sep 2021 12:30:12 -0400 Received: from nomad-cl1.staging.muradm.net ([139.162.159.157]:58052 helo=nomad-cl1.muradm.net) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mQXnP-00039I-Uk for 49969@debbugs.gnu.org; Wed, 15 Sep 2021 12:30:06 -0400 Received: from [176.234.10.27] (port=7276 helo=localhost) by nomad-cl1.muradm.net with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1mQXnQ-0000NK-6s for 49969@debbugs.gnu.org; Wed, 15 Sep 2021 16:30:04 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=muradm.net; s=mail; h=Content-Transfer-Encoding:Content-Type:MIME-Version:References: In-Reply-To:Message-Id:Date:Subject:To:From:Sender:Reply-To:Cc:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=vfeLhb630pnD8Et2n1zZ/LdDV0bK0EXXL+TxrK4iKFI=; b=NBbL7BkTtWJsfjYa6VgR2k96K+ 36PCBxbdrR7e+GCNyWY/JevJL6P+uvoZMTbx06zLxez2RqSIANhTF68qI/yN43waVmKC0cl7G+Wxo BRr5VSIeUYUeURmNW+jwdESi9RyQZMD4uij+AiUTra5YaCROZJCHCHdE4xA9vBd1FMoDDpEb4MtYK gefyDC3gWcintc+0YmcOFGI1CNiwHul6hMF5Kec0aciNKAfuoDoglSDelOoJ1bpEhaXBnduBe8oC5 WzAzz7VhKNweH3s+MH4as7kvpR2ICBVfI5m78Hs82bHHuYc2dhXjJs8hA9Cb6SWDxxp+xple0UbK0 Ge+RUaoUEHEu8EjJh9JD8380aTkA1ytmXuj+ifocMkdsEQ3BvhTD7xCahszeyXCDcKmdHP26bJWn/ Q+sWd8S0E+9mO7fKehxM+OSb/sWp++C87e6f8WXSXnxkTg6mgbpuWb91JRHVSVWcA6GBmvQxweEUm jXtr9BPkWam0xubi2CLUdKYu; Received: from muradm by localhost with local (Exim 4.94.2) (envelope-from ) id 1mQXnN-0007OU-Mt for 49969@debbugs.gnu.org; Wed, 15 Sep 2021 19:30:01 +0300 From: muradm Date: Wed, 15 Sep 2021 19:29:53 +0300 Message-Id: <20210915162958.28398-3-mail@muradm.net> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210915162958.28398-1-mail@muradm.net> References: <20210906152641.11020-1-mail@muradm.net> <20210915162958.28398-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=1631723941; 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=vfeLhb630pnD8Et2n1zZ/LdDV0bK0EXXL+TxrK4iKFI=; b=fLm7Fy4ZpSWbl4OWxNVRLqOKXAiA0DLATJ9Zeqzarp5C7jiAriMuiCxFXk3hyuLMboxCUe 9ulf5pq4G1iDQ211UpSAeqLI68h5/VGLJYByPMCFUsn8X7m9Yjj8+dZFg0rav6vkwsVAMu E/qDkzPcJWfBvMGhj2Sz3xamMbw/oyz8YktR3RaDPRJrIfgCB1ykODHyxCWgu+xP8GyHz6 2gk0ns2FU7M429scJaejbg7kNZ71NgMIk/99NK3iVoemB4IE9Dk3Z4+gui50grR5gWvhJg OLb7RDsH7iAmWkbEuV9KJcMKlngI44N4qLis7gcNG+ekB4gN7yUPwTDufXoOzw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1631723941; a=rsa-sha256; cv=none; b=AV4IxN/aEVhSy2K5Yaugp0Mv30DR4fIIwABtPovaOm8yh6fSa3PafUkN0C7S+OHMtbEUS0 VtXxWKgs5i9OiNoXMG2zmAmu/Y33c8/Q0+NpUNR1ZEUUuUD9mHI387IEul5Bvgf1dZXEy1 xgBmMTf+JQS12EfYvV/MD5u8L0syZRz2zQFzY6pSTcRvIvs2dOePGUfRel74X2DRQV5+F1 keTKQNDbrMmKzQMCcZweMqeiaVyWYuIvp1RtKR/DZ16Q5MmEgZW8/B56nmi/h3E4A0U76y QV9DKexB3p8f8KTOg9DNT77hzPOitkdb2TnT13o/1PztCTU5pvqsGnl0+DgfhQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=muradm.net header.s=mail header.b=NBbL7BkT; 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.40 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=muradm.net header.s=mail header.b=NBbL7BkT; 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: BCCDE111F8 X-Spam-Score: -0.40 X-Migadu-Scanner: scn0.migadu.com X-TUID: DtqBXsx44AIm * gnu/packages/admin.scm (greetd): New variable --- gnu/packages/admin.scm | 79 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 79 insertions(+) diff --git a/gnu/packages/admin.scm b/gnu/packages/admin.scm index 8d6ae9eb1f..bef0ca3745 100644 --- a/gnu/packages/admin.scm +++ b/gnu/packages/admin.scm @@ -45,6 +45,7 @@ ;;; Copyright © 2021 Brice Waegeneire ;;; Copyright © 2021 Maxim Cournoyer ;;; Copyright © 2021 Maxime Devos +;;; Copyright © 2021 muradm ;;; ;;; This file is part of GNU Guix. ;;; @@ -62,6 +63,7 @@ ;;; along with GNU Guix. If not, see . (define-module (gnu packages admin) + #:use-module (guix build-system cargo) #:use-module (guix build-system cmake) #:use-module (guix build-system emacs) #:use-module (guix build-system glib-or-gtk) @@ -88,6 +90,7 @@ #:use-module (gnu packages c) #:use-module (gnu packages check) #:use-module (gnu packages compression) + #:use-module (gnu packages crates-io) #:use-module (gnu packages cross-base) #:use-module (gnu packages crypto) #:use-module (gnu packages cryptsetup) @@ -4813,3 +4816,79 @@ setup, maintenance, supervision, or any long-running processes.") (description "Utility to convert @code{lsof} output to a graph showing FIFO and UNIX interprocess communication.") (license license:bsd-2)))) + +(define-public greetd + (package + (name "greetd") + (version "0.8.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 "0x5c3jkw09kvj2grcxm899y2n6ws8p990cyp9cs0fy6lm4fzlh6v")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs + (("rust-nix" ,rust-nix-0.19) + ("rust-pam-sys" ,rust-pam-sys-0.5) + ("rust-rpassword" ,rust-rpassword-5) + ("rust-users" ,rust-users-0.11) + ("rust-serde" ,rust-serde-1) + ("rust-serde-json" ,rust-serde-json-1) + ("rust-libc" ,rust-libc-0.2) + ("rust-tokio" ,rust-tokio-1) + ("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 + (delete 'package) + (add-after 'build 'build-man-pages + (lambda* (#:key inputs #:allow-other-keys) + (define (scdoc-cmd doc lvl) + (system (string-append "scdoc < " + doc "-" lvl ".scd > " + doc "." lvl))) + (with-directory-excursion "man" + (scdoc-cmd "greetd" "1") + (scdoc-cmd "greetd" "5") + (scdoc-cmd "greetd-ipc" "7") + (scdoc-cmd "agreety" "1")))) + (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) + (with-directory-excursion "man" + (install-file "greetd.1" man1) + (install-file "greetd.5" man5) + (install-file "greetd-ipc.7" man7) + (install-file "agreety.1" man1)))))))) + (native-inputs + `(("linux-pam" ,linux-pam) + ("scdoc" ,scdoc))) + (synopsis "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. + +If you can run it from your shell in a TTY, greetd can start it. + +If it can be taught to speak a simple JSON-based IPC protocol, +then it can be a greeter.") + (license license:gpl3+))) -- 2.33.0