From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.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 EMS/AsyWHWNnxgAAbAwnHQ (envelope-from ) for ; Sun, 11 Sep 2022 10:05:32 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id sKF0AsyWHWM0ZQEAauVa8A (envelope-from ) for ; Sun, 11 Sep 2022 10:05:32 +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 9C6CE15A61 for ; Sun, 11 Sep 2022 10:05:31 +0200 (CEST) Received: from localhost ([::1]:47650 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oXHy6-0004tE-OL for larch@yhetil.org; Sun, 11 Sep 2022 04:05:30 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52154) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oXHvi-0004KD-TO for guix-patches@gnu.org; Sun, 11 Sep 2022 04:03:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:51981) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oXHvi-00083c-FF for guix-patches@gnu.org; Sun, 11 Sep 2022 04:03:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oXHvi-0004ID-9z for guix-patches@gnu.org; Sun, 11 Sep 2022 04:03:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#57721] [PATCH v2 3/4] gnu: Add wlgreet. Resent-From: "(" Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 11 Sep 2022 08:03:02 +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.166288333916422 (code B ref 57721); Sun, 11 Sep 2022 08:03:02 +0000 Received: (at 57721) by debbugs.gnu.org; 11 Sep 2022 08:02:19 +0000 Received: from localhost ([127.0.0.1]:40675 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oXHv0-0004Gj-UU for submit@debbugs.gnu.org; Sun, 11 Sep 2022 04:02:19 -0400 Received: from knopi.disroot.org ([178.21.23.139]:53426) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oXHux-0004GJ-BS for 57721@debbugs.gnu.org; Sun, 11 Sep 2022 04:02:17 -0400 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id D4B7449FF9; Sun, 11 Sep 2022 10:02:14 +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 q9vvUCzkoeJ1; Sun, 11 Sep 2022 10:02:13 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1662883331; bh=b6IqmkhbmAX9/nNvFD/UbuMvQ9XAH9T0qh8+vFKL2ME=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=fjQ2QdNJK8uIGeSKur8W9oSbY4Os7hADGwquyvFEgK8KdudrHhAsMBjjtNw8+rbYq muz9tX5t04g59htjjRCd3DvQWvken9ev7VEN3uBPXhasa5Ik1BulzovpNdIG/YvENH ydNa1LohmFjCXHVgbOPVk78zFQ4TE/4LqzrGvwy6QJlYa4FPqBtrWJdM7KsEXGXlvU rBsKX9HtLnfU+jV8DCIe0aWigQtcR4BfcveUz124LIdIyOmSp58/frEHT90VgvpMog ou2VUPucUVHgWu9xrvqW7s8N3YnruXD1T/mU7VQhLjiqMjZC/ICAtPtFgrSbyitEWL 85jPUBJerlh6w== Date: Sun, 11 Sep 2022 09:02:05 +0100 Message-Id: <20220911080206.31115-3-paren@disroot.org> In-Reply-To: <20220911080206.31115-1-paren@disroot.org> References: <20220911080206.31115-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=1662883531; 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=I1/bzLbX5E/udhiIZdluarIH1ogTx6fvVDI2+geNwYAv9xMt/u4yAPgWrjpQo/ckxPNmBt 6Cb1H0eWJAeOr5wpwNcnut/akUPuK9N+/lCo1tiEhSlhV74exgVMKtW/21+sd4xsbl/v0s N+rHHG/u/+3YGuFeiAB70aaDvnOpgC3Pp1En92YlnQN5WU/5RRpMEWDNjP8/D4tzNNQr4U D/UXmGVBd9YvJN0nDPwNM7TYUI4ClKcxMYfKtDbVysJ+az+pwNCi+uQsqvbgrraSnmICTT +rZpSul4Fr20OF1h4bFVCpGZfmvH10BQkJ8OTSgf+IZJJE9oB213qAB07oRISQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1662883531; a=rsa-sha256; cv=none; b=pKTqUSV2FwCmAHRg51So0trUaMWuvKqQhjCyI1/i4MI2pQM5WuWBxmaw+eYmAaYeupST/X R3q7OYBK4h477rawSVbeUpEQwvvROPm6BU3YVZsK3tzVSsIVkzne3oi17CEltfTY/Au0un 0YrncqCH1kR347QvBgVtrTi7GJVssEs29POIcBNy4Ry/VdleOcvhbmCFzy/ccUB572Pn2i bL2/Hznu5erkqNMNRIVxNgcN77J7sfwczmxxXSRoMqtLD9U1JCAn/ZBrpFhE+3Xff9aIK5 WSwfA/lk4f5hhc01Z2ReQGculF6ouopSVzIt+YxqWZCkwWlQt+b/DTE9S3m0sw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=disroot.org header.s=mail header.b=fjQ2QdNJ; 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: -2.80 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=disroot.org header.s=mail header.b=fjQ2QdNJ; 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: 9C6CE15A61 X-Spam-Score: -2.80 X-Migadu-Scanner: scn1.migadu.com X-TUID: 20yRqfmrXI9n * 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