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 YKgWE53ZFmGL5QAAgWs5BA (envelope-from ) for ; Fri, 13 Aug 2021 22:44: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 mp2 with LMTPS id UF6iDp3ZFmFNWgAAB5/wlQ (envelope-from ) for ; Fri, 13 Aug 2021 20:44: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 E7DE4181A3 for ; Fri, 13 Aug 2021 22:44:11 +0200 (CEST) Received: from localhost ([::1]:35612 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mEe2E-0000mf-LH for larch@yhetil.org; Fri, 13 Aug 2021 16:44:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33450) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mEe26-0000mR-Ir for guix-patches@gnu.org; Fri, 13 Aug 2021 16:44:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:59818) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mEe26-0007FV-CS for guix-patches@gnu.org; Fri, 13 Aug 2021 16:44:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mEe26-00059a-AA for guix-patches@gnu.org; Fri, 13 Aug 2021 16:44:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#49969] [PATCH v3 03/10] gnu: freedesktop: Add greetd 0.7.0 Resent-From: muradm Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 13 Aug 2021 20:44: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.162888742319766 (code B ref 49969); Fri, 13 Aug 2021 20:44:02 +0000 Received: (at 49969) by debbugs.gnu.org; 13 Aug 2021 20:43:43 +0000 Received: from localhost ([127.0.0.1]:43128 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mEe1h-00058b-Sp for submit@debbugs.gnu.org; Fri, 13 Aug 2021 16:43:43 -0400 Received: from mail-wr1-f49.google.com ([209.85.221.49]:42551) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mEe1e-000587-MI for 49969@debbugs.gnu.org; Fri, 13 Aug 2021 16:43:36 -0400 Received: by mail-wr1-f49.google.com with SMTP id q11so14863821wrr.9 for <49969@debbugs.gnu.org>; Fri, 13 Aug 2021 13:43:34 -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=3V8DMCKbRSqdR3wtMv+7Ro3Vrt3PCoHfrpfXzhJ1GgI=; b=QpI0nyxz6PIH3LH+RIkmAGe9aTE10YTrUHFacM29afpzyBrh0arRIghOXV4cVoTDjF luCmo+k4Ab6J26Xi29dhuDml3lLTAXX/6juAInE/Z8hXn565l899OIggEA4ZkKF8gWgh xCeyQL98YpYrRHW1eoK/X0PKsZyGS2N0FZM6RMtTYww4EQ7n8XjzwEVLbDCCpxFeads/ mphzKn9WksP5u8orwWH0ENtN1oIu1F8ji1C5Twnpsa0byI8h/kA3rO4gWUsM+z2WAkma +oFr4S8+/NbvTsoCG8wa8ET/rW6krm0zf1OohPntYEBX35zeRAvOL2bkWHtGrc/+vH3N WutA== 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=3V8DMCKbRSqdR3wtMv+7Ro3Vrt3PCoHfrpfXzhJ1GgI=; b=mN/1XpbCDXDBTuu2RcQFlHOvvD7C2LsdHdD2c74Wlrs/AX3xDUYMcDpjZaLgOuYdnT O7jZjQ5VSDoM4gXS+T+Hvc8oTpH6HImtfwalMUyK60/o6AMeWqb9skXLH+v8II4gn+bt H6YpTm5J1GWBc33mD8rMDwTBxEPmpzd7AssyWsw27SZ/BoYwSTJ0aVYUvAuEhqralfPL D5Qfn+SFg6Z62mkgJPpjhEK/p53ncZ7ufgYSvSXAgvPbXxbiGdzTLhEpl7XkedYEq/R/ 7sDwh1ZgaldyeOutL9w/BwGRUFv17tLkgbGLiNPkEggCQhClEyOgwjxD+zpeBOOKJjYq 04zg== X-Gm-Message-State: AOAM531QT5d1AWbUm8cemtt9X9e/KuFTFmg61t67Uxkx/eMqN33eVXQ+ KNVn5QmED/FiFfLWWaiDAmwRbXzTIjl5JQ== X-Google-Smtp-Source: ABdhPJyceTXnMdQCDuPV5AdcPkOxcR/9KsVyp6ELI0nYSfeQSfVI3dr8MmZ7L8S/axbhapVHD3wwuw== X-Received: by 2002:a05:6000:2c3:: with SMTP id o3mr5136163wry.133.1628887408472; Fri, 13 Aug 2021 13:43:28 -0700 (PDT) Received: from localhost.localdomain ([5.24.113.45]) by smtp.gmail.com with ESMTPSA id p14sm2380187wmi.42.2021.08.13.13.43.27 for <49969@debbugs.gnu.org> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Aug 2021 13:43:27 -0700 (PDT) From: muradm Date: Fri, 13 Aug 2021 23:43:21 +0300 Message-Id: <20210813204321.2111-1-mail@muradm.net> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210812220022.24025-1-mail@muradm.net> References: <20210812220022.24025-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=1628887453; 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=3V8DMCKbRSqdR3wtMv+7Ro3Vrt3PCoHfrpfXzhJ1GgI=; b=PhfZw5mvhoJaEmC4OzbCepaVgLTbDy+X1ObxR8Y0ySfkaT5phpmdUJEwLKUQyRfMzhnYKD OjK71Wo2fbllB5rdlQYUDppMQBLSPFfc3xayj9dF0Bntuvi8e2XfiQ+7RPicIkAyYbEdyE rNb6XYg4gjpDPrzvOh7/q1nXsWMDs+6wT8BFHruv1QiP+2O+Lmn0AKDWiJggoE6OMNGyW/ vh26uOz26l/H/Otxg3HJbpEuPBkXnFs8Rc3FhUnEomQaIL9GTioqKw5CEF1cDwybpUK7nH lu+CVrbbPUgbGfXdklyX2rmIKMYP4XYKavnkRBasAMGYVm6ZePv/3IvQMzq1yg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1628887453; a=rsa-sha256; cv=none; b=DqHEsvvu39WZG7JNLFo/d0akcoJeTULRzPJy+ZwSnWaJHdv8V35/e+TCvCZWifqHES/YJN NvrCTjlLYji6uErNOL6jjEcbrU625VXmbQMDtDgySt/N0BXLdX7l1cnL267bFXjL7G4qWG 6lJjW6AB2/YHEBPUZsVeVnyDN9iGJLY+AHu7JRSIu7i6tkTdeqMO+0mdgt3wqOjjoy7d20 +84akNj5BOpTPTGGM/G2kfwZhQ92quYwy3j5S6ACA6UvwZmHcQ2IaIEnmjW7MnAoq257vv ZQ8t57Kwa4GZXHRK2U8yXkIM/Akkt4VEfFO3vcPe8cW1qcmeuyii1hpuFUJqgw== 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=QpI0nyxz; 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=QpI0nyxz; 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: E7DE4181A3 X-Spam-Score: -0.41 X-Migadu-Scanner: scn1.migadu.com X-TUID: 1UpTPakkfNqu * gnu/packages/freedesktop.scm (greetd): Add greetd 0.7.0 --- gnu/packages/freedesktop.scm | 86 ++++++++++++++++++++++++++++++++++++ 1 file changed, 86 insertions(+) diff --git a/gnu/packages/freedesktop.scm b/gnu/packages/freedesktop.scm index 693a79c738..0be7d0fe4d 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,89 @@ 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) + (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+))) + (define-public packagekit (package (name "packagekit") -- 2.32.0