From unknown Wed Jun 18 23:16:17 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#68502 <68502@debbugs.gnu.org> To: bug#68502 <68502@debbugs.gnu.org> Subject: Status: [PATCH] gnu: Add evhz. Reply-To: bug#68502 <68502@debbugs.gnu.org> Date: Thu, 19 Jun 2025 06:16:17 +0000 retitle 68502 [PATCH] gnu: Add evhz. reassign 68502 guix-patches submitter 68502 Christina O'Donnell severity 68502 normal tag 68502 patch thanks From debbugs-submit-bounces@debbugs.gnu.org Tue Jan 16 06:45:45 2024 Received: (at submit) by debbugs.gnu.org; 16 Jan 2024 11:45:45 +0000 Received: from localhost ([127.0.0.1]:47940 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rPht2-0007GW-2n for submit@debbugs.gnu.org; Tue, 16 Jan 2024 06:45:45 -0500 Received: from lists.gnu.org ([2001:470:142::17]:53254) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rPhS2-0002Fu-Ou for submit@debbugs.gnu.org; Tue, 16 Jan 2024 06:17:51 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rPhRx-00068m-4E for guix-patches@gnu.org; Tue, 16 Jan 2024 06:17:45 -0500 Received: from vmi993448.contaboserver.net ([194.163.141.236] helo=mutix.org) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rPhRu-0003rY-Tp for guix-patches@gnu.org; Tue, 16 Jan 2024 06:17:44 -0500 Received: from [86.132.246.87] (host86-132-246-87.range86-132.btcentralplus.com [86.132.246.87]) (Authenticated sender: cdo) by mutix.org (Postfix) with ESMTPSA id 53B61A630DA; Tue, 16 Jan 2024 12:17:39 +0100 (CET) From: Christina O'Donnell To: guix-patches@gnu.org Subject: [PATCH] gnu: Add evhz. Date: Tue, 16 Jan 2024 11:17:25 +0000 Message-ID: <3cef1d9bbcfa33eb69881262c5db956cd42c682b.1705403845.git.cdo@mutix.org> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=194.163.141.236; envelope-from=cdo@mutix.org; helo=mutix.org X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Tue, 16 Jan 2024 06:45:41 -0500 Cc: Christina O'Donnell , Felix Lechner X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) * gnu/packages/evhz.scm (evhz): New file and variable. Change-Id: I9708ec7bd72d2fc2f42350321f045068a5135ee2 --- gnu/packages/evhz.scm | 85 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 85 insertions(+) create mode 100644 gnu/packages/evhz.scm diff --git a/gnu/packages/evhz.scm b/gnu/packages/evhz.scm new file mode 100644 index 0000000000..7c59c645d9 --- /dev/null +++ b/gnu/packages/evhz.scm @@ -0,0 +1,85 @@ +;;; GNU Guix --- Functional package management for GNU +;;; Copyright © 2024 Christina O'Donnell +;;; +;;; This file is part of GNU Guix. +;;; +;;; GNU Guix is free software; you can redistribute it and/or modify it +;;; under the terms of the GNU General Public License as published by +;;; the Free Software Foundation; either version 3 of the License, or (at +;;; your option) any later version. +;;; +;;; GNU Guix is distributed in the hope that it will be useful, but +;;; WITHOUT ANY WARRANTY; without even the implied warranty of +;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +;;; GNU General Public License for more details. +;;; +;;; You should have received a copy of the GNU General Public License +;;; along with GNU Guix. If not, see . + +(define-module (gnu packages evhz) + #:use-module (guix gexp) + #:use-module ((guix licenses) #:prefix license:) + #:use-module (guix packages) + #:use-module (guix git-download) + #:use-module (guix build-system trivial) + #:use-module (guix utils) + #:use-module (gnu packages) + #:use-module (gnu packages base) + #:use-module (gnu packages commencement) + #:use-module (gnu packages gcc) + #:use-module (gnu packages glib) + #:use-module (gnu packages linux)) + +(define-public evhz + (let ((commit "35b7526e0655522bbdf92f6384f4e9dff74f38a0") + (revision "1")) + (package + (name "evhz") + (version (git-version "0.0.0" revision commit)) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://git.sr.ht/~iank/evhz") + (commit commit))) + (sha256 + (base32 "1m2m60sh12jzc8f38g7g67b3avx2vg8ff0lai891jmjqvxw04bcl")))) + (build-system trivial-build-system) + (arguments + `(#:modules ((guix build utils)) + #:builder (begin + (use-modules (guix build utils)) + (let ((source (assoc-ref %build-inputs "source")) + (glibc (assoc-ref %build-inputs "glibc")) + (gcc (assoc-ref %build-inputs "gcc")) + (binutils (assoc-ref %build-inputs "binutils")) + (linux-libre-headers (assoc-ref %build-inputs + "linux-libre-headers")) + (output (assoc-ref %outputs "out"))) + (setenv "PATH" + (string-join (list (string-append gcc "/bin") + (string-append binutils + "/bin") + (getenv "PATH")) ":")) + (setenv "LIBRARY_PATH" + (string-join (list (string-append glibc "/lib")) + ":")) + (mkdir-p (string-append output "/bin")) + (invoke (string-append gcc "/bin/gcc") + "-o" + (string-append output "/bin/evhz") + "-I" + (string-append linux-libre-headers "/include") + (string-append source "/evhz.c")) #t)))) + (native-inputs (list binutils gcc gcc-toolchain glibc + linux-libre-headers)) + (home-page "https://git.sr.ht/~iank/evhz") + ;; TRANSLATORS: "evdev" should not be translated. + (synopsis "Show mouse polling rate using evdev") + (description + "A simple diagnostic utility to show mouse polling rate under evdev, a Linux +event interface. If you have invested in a high resolution mouse, adjusting the USB +polling rate is a common trick to utilize the added precision it brings. The polling +rate (or report rate) determines how often the mouse sends information to your +computer.") + (license license:apsl2)))) base-commit: 162d6a2fdd6af13272967c77347a54934ecb45e6 -- 2.41.0 From debbugs-submit-bounces@debbugs.gnu.org Tue Jan 16 08:49:33 2024 Received: (at 68502) by debbugs.gnu.org; 16 Jan 2024 13:49:33 +0000 Received: from localhost ([127.0.0.1]:48172 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rPjoq-0008TQ-T6 for submit@debbugs.gnu.org; Tue, 16 Jan 2024 08:49:33 -0500 Received: from vmi993448.contaboserver.net ([194.163.141.236]:33202 helo=mutix.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rPhvJ-0000Ag-Ok for 68502@debbugs.gnu.org; Tue, 16 Jan 2024 06:48:06 -0500 Received: from [192.168.1.170] (host86-132-246-87.range86-132.btcentralplus.com [86.132.246.87]) (Authenticated sender: cdo) by mutix.org (Postfix) with ESMTPSA id 7F3AAA630DA; Tue, 16 Jan 2024 12:48:03 +0100 (CET) Message-ID: <0c5c2940-31cc-4e72-b992-964505a855c9@mutix.org> Date: Tue, 16 Jan 2024 11:48:02 +0000 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.15.0 Subject: Re: [PATCH] gnu: Add evhz. Content-Language: en-US To: 68502@debbugs.gnu.org References: <3cef1d9bbcfa33eb69881262c5db956cd42c682b.1705403845.git.cdo@mutix.org> From: Christina O'Donnell In-Reply-To: <3cef1d9bbcfa33eb69881262c5db956cd42c682b.1705403845.git.cdo@mutix.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -3.1 (---) X-Debbugs-Envelope-To: 68502 X-Mailman-Approved-At: Tue, 16 Jan 2024 08:49:32 -0500 Cc: Felix Lechner X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.1 (----) Hi Guix maintainers, On 16/01/2024 11:17, Christina O'Donnell wrote: > * gnu/packages/evhz.scm (evhz): New file and variable. evhz is a small utility written as a single line of C and brief short shell script. This is my first package that I've attempted to contribute so feedback about the patch and my communication would be most welcome (even if it's a small thing). I didn't know which file is suitable, so I've put it in its own file (gnu/packages/evhz.scm) for now. Have a great day! Christina O'Donnell