From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id GIY7HH2fQ2Ht2gAAgWs5BA (envelope-from ) for ; Thu, 16 Sep 2021 21:48:13 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id IITkF32fQ2FyFgAA1q6Kng (envelope-from ) for ; Thu, 16 Sep 2021 19:48:13 +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 D1E7B5860 for ; Thu, 16 Sep 2021 21:48:12 +0200 (CEST) Received: from localhost ([::1]:33370 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mQxMh-0003a0-TH for larch@yhetil.org; Thu, 16 Sep 2021 15:48:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38184) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mQxMZ-0003Y2-L7 for guix-patches@gnu.org; Thu, 16 Sep 2021 15:48:05 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:45111) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mQxMZ-0001k1-Di for guix-patches@gnu.org; Thu, 16 Sep 2021 15:48:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mQxMZ-0005AA-Cq for guix-patches@gnu.org; Thu, 16 Sep 2021 15:48:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#49969] [PATCH v8 2/7] gnu: admin: Add greetd 0.8.0. Resent-From: muradm Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 16 Sep 2021 19:48: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.163182166819763 (code B ref 49969); Thu, 16 Sep 2021 19:48:03 +0000 Received: (at 49969) by debbugs.gnu.org; 16 Sep 2021 19:47:48 +0000 Received: from localhost ([127.0.0.1]:56646 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mQxMG-00058P-Q5 for submit@debbugs.gnu.org; Thu, 16 Sep 2021 15:47:48 -0400 Received: from nomad-cl1.staging.muradm.net ([139.162.159.157]:58074 helo=nomad-cl1.muradm.net) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mQxM7-00056s-Jk for 49969@debbugs.gnu.org; Thu, 16 Sep 2021 15:47:38 -0400 Received: from [176.234.10.27] (port=7046 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 1mQxM7-0000YH-DF for 49969@debbugs.gnu.org; Thu, 16 Sep 2021 19:47:35 +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=EDhqCMIsbq+6kKaTdqcMnTnpWb KNYbSY0C6yeZ/y1ZJYVBrstIZhwx/t/gyn7IiblF4urAcZhwq+Y/hUzbjZzOyAoBhzoFm2pUQ9xis KrUidTDBek79TbsovoiDos9ZgVi1nzOApP+0cpLW6BvbX9Cb82D85lSPQngXBRz1xSoVfQa6ukJme JrwKZV2ZewabQrGIFUiUHIvVpphPSPDECU42XYX/Ota6k8FjD7KPOKmG5MBwjN0KYrmTNkYDYCP9W pv/jXu8spBEOi5LB2tXwujDiOrcUCXxFtQa7S+Rb47ubssQbtKUJWTiPoF9v/VPThEuMxsj5iMbtg JckLwDlAoXOG84S271WiJio1ot6gEjwiupOX/qYlciyrBFVfhQaePsgwkvdbkdvZLw3q5me5dqiJB 8zUhIQWHEjj6KbL48HiQytJErT54jat1FU/imO4C8f3oi1wV/awsDlkToLCmr2uBbXdPkXOKCSQdT kT3ABx6A9W6moZm1n+vnFIeW; Received: from muradm by localhost with local (Exim 4.94.2) (envelope-from ) id 1mQxM4-00005h-9G for 49969@debbugs.gnu.org; Thu, 16 Sep 2021 22:47:32 +0300 From: muradm Date: Thu, 16 Sep 2021 22:47:23 +0300 Message-Id: <20210916194728.324-3-mail@muradm.net> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210916194728.324-1-mail@muradm.net> References: <20210915162958.28398-1-mail@muradm.net> <20210916194728.324-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=1631821693; 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=ie9aF2T3OkpomXUQuAXB6tcT+WjxBrjUxeIsE274zDRRRCTUlXLzfPI5xz+NJvq4XNIsMi RvHmLgWbF8I1RjDiuJBhzDQZfeWgznj371SEwB9zcLxb2QYFzlARlQsBXDWqqhNO5VLN2B FKhqemctmzUy0UEwrJJT33w3CnxzfsSar1q71MD6VS/hiqyoFJNaEeEGtEtW+X+v2LEmXy AD8eJllW5zfdOdBzSoJYCXVJQR3k0HEssid62Ohot/8dXuCXX7dxx2lVaHdh9aeMm01VSd cDCCEn1ecevakIZCohJ9LZXpgfxqL7JAJnf6fs9Y9o0VBnR3sRBGur9DO4w1rw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1631821693; a=rsa-sha256; cv=none; b=Xd8JvPIgcVEb8X3fTt/1ON9rxDY59Do7hD3S+eAEF6Af0bys7rNWouvLyXApo6ZkrfNPh9 epmjEtggCeyvux5aQOobz7WjIQXCG3WwTgbdWLCaR0UptLt1vh73qoQw8eB6ERMiPefYBm HRYyhZfPyYD5zOLIVBEl9Fr+yYWwBOUrakmwPE5vbglbBCO+jZ5adDCz/T+x7rrGjsLzbK P5kZSrzuAjJnGFz740BYB/ATQFgJcxAQZez2oTdD+uvwTlVS8TEQXpc/SAd0DKGo8aD/H3 T4dDQqiFdrC/adXYXoHnO2MF3ochMn7SiC4IpsPZQcPVarJjlRPHPeSdAUehEA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=muradm.net header.s=mail header.b=EDhqCMIs; 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: 1.10 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=muradm.net header.s=mail header.b=EDhqCMIs; 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: D1E7B5860 X-Spam-Score: 1.10 X-Migadu-Scanner: scn0.migadu.com X-TUID: 7Tfp7yhQ7Mdg * 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