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 UFf/F4wzNmEYjQAAgWs5BA (envelope-from ) for ; Mon, 06 Sep 2021 17:28:12 +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 sDucE4wzNmHnLQAA1q6Kng (envelope-from ) for ; Mon, 06 Sep 2021 15:28:12 +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 E339D14ED9 for ; Mon, 6 Sep 2021 17:28:11 +0200 (CEST) Received: from localhost ([::1]:47258 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mNGXb-0000zA-34 for larch@yhetil.org; Mon, 06 Sep 2021 11:28:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58952) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mNGXS-0000vp-9U for guix-patches@gnu.org; Mon, 06 Sep 2021 11:28:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:42699) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mNGXS-0006zL-29 for guix-patches@gnu.org; Mon, 06 Sep 2021 11:28:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mNGXR-0006nl-Uw for guix-patches@gnu.org; Mon, 06 Sep 2021 11:28:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#49969] [PATCH v6 3/8] gnu: admin: Add greetd 0.8.0. Resent-From: muradm Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 06 Sep 2021 15:28: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: 49969@debbugs.gnu.org Received: via spool by 49969-submit@debbugs.gnu.org id=B49969.163094202326017 (code B ref 49969); Mon, 06 Sep 2021 15:28:01 +0000 Received: (at 49969) by debbugs.gnu.org; 6 Sep 2021 15:27:03 +0000 Received: from localhost ([127.0.0.1]:54229 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mNGWR-0006ks-Vi for submit@debbugs.gnu.org; Mon, 06 Sep 2021 11:27:03 -0400 Received: from mail-wr1-f47.google.com ([209.85.221.47]:38600) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mNGWO-0006jt-QQ for 49969@debbugs.gnu.org; Mon, 06 Sep 2021 11:26:57 -0400 Received: by mail-wr1-f47.google.com with SMTP id u16so10382224wrn.5 for <49969@debbugs.gnu.org>; Mon, 06 Sep 2021 08:26:56 -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=+kPyJClvY2gokRyY+vFO+UTd8Le0znSYq8SQWJwy+lM=; b=VGuVAB6Dynhxt303SzSF/VcscTZR1QRKauTCKLe9qIZzIDYFBd44egxUdVd0jsRlHN h5jYpNWRcrKBSV+mtnZ5uYfBREr66rjihoCP+2g2kj3BOAZmyaoFVJaDoBPSceYP/4g8 gLot+h1KvM2TiIfVA89pUIRRxNnr3lf67x++yBeGxDq8RiZEK37mozXqJaOHKD5/FDBB EJrD6SCsVzgQSQXFvczosp0/75frorbgrI/Zr0EKZUSRxecVkrYetpKhoCIy4ulRcrz3 NTIWYh+EC1fuBWsMWsclmKhSVazn9EkHRCRDiobWG31gRpyCB4/6AZbQA3kfCvJXAwL6 g7zQ== 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=+kPyJClvY2gokRyY+vFO+UTd8Le0znSYq8SQWJwy+lM=; b=rpLvA0VeQ+fE5WmBz73Jv1uLP+hO3SjU6l3PoaTRethJd1Y9mMfDf0YNhxVWoWOOVq eKU8gPJEhN5fBs95shpEeoBiH3zkgjX9USZADtYn+cujXYtLxmbbeufVVR7zqtdN0arG 7F/6IP/4GwXGBydF8RgzxaofE3HPujGxd8az9dfzYyoGRUzpJUuMGVO0MYAB/RYCl1zO Le0Vof5PTrY8E8atWuHbarCUKaunudAY1ZeWB4O1cDZs3lLycRBE3+Cd8UjKm9/OMhsY PmFhinxSOiBRTmb0Zg2e9Ewzkweax8WxoE37JZuEPRqwB4WnbvDNCj1vNrf6bp8MT9V7 yozw== X-Gm-Message-State: AOAM5316pqXLuihylpV3Kdyv3UIm38G3q4fDndEjCyJzM6oukMCP0v37 nxyGpGeiWo7Q6JB3YWQky18dVfZdCT5qqp4+ X-Google-Smtp-Source: ABdhPJxSS7xONKSKQXj6u8aF4RrTqL0ITwLoyto4/cak0KG2SFCJ0EyYg14P63v05wv7uZSltTlwTw== X-Received: by 2002:adf:9f4a:: with SMTP id f10mr13921981wrg.384.1630942010706; Mon, 06 Sep 2021 08:26:50 -0700 (PDT) Received: from localhost.localdomain ([176.234.10.27]) by smtp.gmail.com with ESMTPSA id m4sm7687896wml.28.2021.09.06.08.26.49 for <49969@debbugs.gnu.org> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Sep 2021 08:26:50 -0700 (PDT) From: muradm Date: Mon, 6 Sep 2021 18:26:36 +0300 Message-Id: <20210906152641.11020-4-mail@muradm.net> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210906152641.11020-1-mail@muradm.net> References: <20210822215048.20480-1-mail@muradm.net> <20210906152641.11020-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=1630942092; 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=+kPyJClvY2gokRyY+vFO+UTd8Le0znSYq8SQWJwy+lM=; b=k3WTyx3PccWyjjcvS9wZ0BkxKkGCwIFmYDVUpws0ofh0R/z5EF2eO59GSOC7qrWz0qt+a8 Vopu+82r0UvDXFOl4sx4foxRN6aGWhQqmkmaHBHHt5pu3bquJkNi7a/o+23F2R/+O2wGVm Kocap20T9c91BElExr72Kpe1f6MEKWQsBpnLsQA+YWMAANL6ng5RXu7nkmYZ+pLmTWPKI9 X64kwUBUTLb8Wx6huZV0NukqYXcozAMg/cSozeibdaQYW9mE4EU+BFCTLh9WyCexc5G7z+ s/H1Bef5nEhwSIuTCsfrVGDz3jVsVV3B8pRmFv+DSemQy+2vXXD7f6G4BgcDAA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1630942092; a=rsa-sha256; cv=none; b=YlIv4cKR1+2KUMyKZKR9HJE3OtqTas0mqU1QwbBv4zyzAbyOgy92UoJr8p5N5EGzQrJK5g M+WQONMLsFrNTob87gy5qlaMf+Ow9+pjrtO6pV+v0mLi9OrX6w6xJUR1oA4CuYJS8KRPlB Qtl7fosKIayIEEqS+rwZ6pAUmuYguppdUwJQ5qUHl8JcUAGlzKYCK8ta/y55EkTzNBBE0K rlvDhcoIpJ85Y8vVzT0K3SYl+ce93dtevcns2H6q/aXzGXiU1HlcXr8hnA0RlFlsnJHVmQ sfgv3PZfkBRfXua8CBe3zkzvzkInCzorZS9J18CnjiZQdt6WptKKUpqVW9HrvQ== 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=VGuVAB6D; 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.42 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=muradm-net.20150623.gappssmtp.com header.s=20150623 header.b=VGuVAB6D; 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: E339D14ED9 X-Spam-Score: -0.42 X-Migadu-Scanner: scn0.migadu.com X-TUID: 4qqH0Cj1gANa * 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 db820b28c1..de59c793cc 100644 --- a/gnu/packages/admin.scm +++ b/gnu/packages/admin.scm @@ -44,6 +44,7 @@ ;;; Copyright © 2021 Brice Waegeneire ;;; Copyright © 2021 Maxim Cournoyer ;;; Copyright © 2021 Maxime Devos +;;; Copyright © 2021 muradm ;;; ;;; This file is part of GNU Guix. ;;; @@ -61,6 +62,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) @@ -87,6 +89,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) @@ -4799,3 +4802,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) + ("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