From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id EP8JNz30HGM6DwAAbAwnHQ (envelope-from ) for ; Sat, 10 Sep 2022 22:31:57 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id NWoKNz30HGO+BQEA9RJhRA (envelope-from ) for ; Sat, 10 Sep 2022 22:31:57 +0200 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 716AEC9E7 for ; Sat, 10 Sep 2022 22:31:57 +0200 (CEST) Received: from localhost ([::1]:42608 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oX78u-0001HA-FO for larch@yhetil.org; Sat, 10 Sep 2022 16:31:56 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36884) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oX784-0001Ds-4j for guix-patches@gnu.org; Sat, 10 Sep 2022 16:31:09 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:51731) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oX783-00057B-H9 for guix-patches@gnu.org; Sat, 10 Sep 2022 16:31:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oX783-0004AO-Cm for guix-patches@gnu.org; Sat, 10 Sep 2022 16:31:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#57721] [PATCH 3/4] gnu: Add wlgreet. Resent-From: "(" Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 10 Sep 2022 20:31:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 57721 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 57721@debbugs.gnu.org Cc: "\(" Received: via spool by 57721-submit@debbugs.gnu.org id=B57721.166284184415963 (code B ref 57721); Sat, 10 Sep 2022 20:31:03 +0000 Received: (at 57721) by debbugs.gnu.org; 10 Sep 2022 20:30:44 +0000 Received: from localhost ([127.0.0.1]:40426 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oX77j-00049K-F3 for submit@debbugs.gnu.org; Sat, 10 Sep 2022 16:30:43 -0400 Received: from knopi.disroot.org ([178.21.23.139]:34426) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oX77f-00048p-Jz for 57721@debbugs.gnu.org; Sat, 10 Sep 2022 16:30:40 -0400 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id ECDEC49FE8; Sat, 10 Sep 2022 22:30:38 +0200 (CEST) X-Virus-Scanned: SPAM Filter at disroot.org Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id bxClRDkEX276; Sat, 10 Sep 2022 22:30:37 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1662841836; bh=b6IqmkhbmAX9/nNvFD/UbuMvQ9XAH9T0qh8+vFKL2ME=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=iZw6WCFB74ZwL4PCf/qQ81kiJAO+2dJ0COMIoGDj3RcVtsYbrq0NGd5QhfTolDEUR v+o0LXFun1sTCjzORB5mHj7qfSu5CkJJg9mG2W2l+G8N5oC3mjuxL0cJ+Ajv4QuEQz EC/YoOUF9EaK9iTc7a6K0FmJtZEXhnvLLr0j+mUTDGub25TYUgZbeXxs05o52xtmXX D/j6Wl2bhamWXZfyqMzMhqV6sZhqhiw2zZdzXC7Drag0Jjr9MwQ6QzHrr2Q/SK/Ky1 KPV0VliFgLlW4O2Tiw9TKK92WO/6HHO9Ue8s4fJWFB6dhI4nQ4Lyf6D4rfKxkEFqNQ fn39pEmWG8I/Q== Date: Sat, 10 Sep 2022 21:30:31 +0100 Message-Id: <20220910203032.17699-3-paren@disroot.org> In-Reply-To: <20220910203032.17699-1-paren@disroot.org> References: <20220910203032.17699-1-paren@disroot.org> 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" Reply-to: "\(" X-ACL-Warn: , "\( via Guix-patches" From: "\( via Guix-patches" via X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1662841917; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc: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=cnuOsh80R8dTSXkgV8EBqVNhPu6Z3oVCaBSP1OWA1xk=; b=j9usPJ4OY3H3cyO0+mtFuW7g6DECHNQiekIGr4V8RT8WmH/gu1mTdAegxLnVKi0woGuRDT Hn5J1EzSTrW4KSWe1CsIw4Kmkomcb2q6xlps2F9rV3o+g4bQByuJZoflJ3VTEIvnypBRsL pbX1msJ7p8j1ymTOEtCjwH0/kocBsdcL+T9wvesagQrE8AFMi+DXY99cIrqULYs6PJhqpT jjVLrSGsgDrL+thBhJ2TmT8IrpmKK0Fs8dD87NMM93ov1QwNiKs3vBpviiLiTeQLG5M2Wz E/dFWVVp7dpSsU/tgB7OYc7hyiuDgimqAeo9S9gcYfr/Qn3PBnyrHa8rTDpCig== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1662841917; a=rsa-sha256; cv=none; b=cEKAgMEYd2KU57OkPBXKe/TAQwPDlyITu++tWs6qvxdQl65Y3fhE5QY6bYpN/4iU68N4Z8 B+ldc6S0O17as09a+P+dB6nk41lxqraViqExefWRUtVVy9i9GlbBW5wyCCWyZSpbFqJSin KRS9YSpXXF5Evy9slPt61oz6aPaal5o2GLo2OghI7bl6ANdfPaUKHY0PU0JfjVP7FcEbEw xrZUkBp3LB8Wfqvs9X2/5uOuYfKO/GjIjrL2fxRhe0nX0PFW3+t4cUiawq6W9FtxeQtl+N MyZgzhiTt3NuRvQO2230tWzoz0/i7Z/QjI8MxjoPjuEUJGYRqvl79WaOD1TNWA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=disroot.org header.s=mail header.b=iZw6WCFB; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -3.09 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=disroot.org header.s=mail header.b=iZw6WCFB; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 716AEC9E7 X-Spam-Score: -3.09 X-Migadu-Scanner: scn0.migadu.com X-TUID: DJ+pi6iINHq7 * gnu/packages/admin.scm (wlgreet): New variable. --- gnu/packages/admin.scm | 71 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 71 insertions(+) diff --git a/gnu/packages/admin.scm b/gnu/packages/admin.scm index 21f9176bfa..bf76d3bd30 100644 --- a/gnu/packages/admin.scm +++ b/gnu/packages/admin.scm @@ -51,6 +51,7 @@ ;;; Copyright © 2021 Artyom V. Poptsov ;;; Copyright © 2022 Wamm K. D. ;;; Copyright © 2022 Roman Riabenko +;;; Copyright © 2022 ( ;;; ;;; This file is part of GNU Guix. ;;; @@ -97,6 +98,7 @@ (define-module (gnu packages admin) #:use-module (gnu packages c) #:use-module (gnu packages check) #:use-module (gnu packages compression) + #:use-module (gnu packages crates-graphics) #:use-module (gnu packages crates-io) #:use-module (gnu packages cross-base) #:use-module (gnu packages crypto) @@ -107,6 +109,7 @@ (define-module (gnu packages admin) #:use-module (gnu packages elf) #:use-module (gnu packages file) #:use-module (gnu packages flex) + #:use-module (gnu packages fonts) #:use-module (gnu packages freedesktop) #:use-module (gnu packages gawk) #:use-module (gnu packages gettext) @@ -5192,6 +5195,74 @@ (define-public greetd-pam-mount auto-(mounting/unmounting) of XDG_RUNTIME_DIR in the way that it will not interfere with default pam-mount configuration."))) +(define-public wlgreet + (package + (name "wlgreet") + (version "0.4") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://git.sr.ht/~kennylevinsen/wlgreet") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "00grp63n9nrgqls3knxfv9wjbc7p0jwr7i2vzxy750dz85gi2kzn")))) + (build-system cargo-build-system) + (arguments + (list #:cargo-inputs + `(("rust-chrono" ,rust-chrono-0.4) + ("rust-getopts" ,rust-getopts-0.2) + ("rust-greetd-ipc" ,rust-greetd-ipc-0.8) + ("rust-lazy-static" ,rust-lazy-static-1) + ("rust-memmap2" ,rust-memmap2-0.3) + ("rust-nix" ,rust-nix-0.15) + ("rust-os-pipe" ,rust-os-pipe-0.8) + ("rust-rusttype" ,rust-rusttype-0.7) + ("rust-serde" ,rust-serde-1) + ("rust-smithay-client-toolkit" + ,rust-smithay-client-toolkit-0.15) + ("rust-toml" ,rust-toml-0.5) + ("rust-wayland-client" ,rust-wayland-client-0.29) + ("rust-wayland-protocols" ,rust-wayland-protocols-0.29) + ("rust-xml-rs" ,rust-xml-rs-0.8)) + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'remove-bundled-fonts + (lambda _ + (delete-file-recursively "fonts"))) + (add-after 'remove-bundled-fonts 'fix-font-references + (lambda* (#:key inputs #:allow-other-keys) + (substitute* "src/draw.rs" + (("\\.\\./fonts/dejavu/DejaVuSansMono\\.ttf" _) + (search-input-file + inputs + "share/fonts/truetype/DejaVuSansMono.ttf")) + (("\\.\\./fonts/Roboto-Regular\\.ttf" _) + (search-input-file + inputs + "share/fonts/truetype/Roboto-Regular.ttf"))))) + (add-after 'configure 'fix-library-references + (lambda* (#:key inputs vendor-dir #:allow-other-keys) + (substitute* (find-files vendor-dir "\\.rs$") + (("lib(wayland-.*|xkbcommon)\\.so" so-file) + (search-input-file + inputs + (string-append "lib/" so-file))))))))) + (inputs + (list font-dejavu + font-google-roboto + libxkbcommon + wayland)) + (home-page "https://git.sr.ht/~kennylevinsen/wlgreet") + (synopsis "Bare-bones Wayland-based greeter for @command{greetd}") + (description + "@command{wlgreet} provides a @command{greetd} greeter +that runs on a Wayland compositor such as @command{sway}. It +is implemented with pure Wayland APIs, so it does not depend +on a GUI toolkit.") + (license license:gpl3))) + (define-public libseat (package (name "libseat") -- 2.37.3