From patchwork Sun Feb 4 13:54:41 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Ahmad Draidi X-Patchwork-Id: 59781 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 3FAF727BBEA; Sun, 4 Feb 2024 13:57:20 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL, SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 7A9CA27BBE9 for ; Sun, 4 Feb 2024 13:57:18 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rWczV-0005oK-MC; Sun, 04 Feb 2024 08:57:01 -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 1rWczL-0005ka-WE for guix-patches@gnu.org; Sun, 04 Feb 2024 08:56:54 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rWczL-0005mA-O2 for guix-patches@gnu.org; Sun, 04 Feb 2024 08:56:51 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rWczW-0000c0-Kw for guix-patches@gnu.org; Sun, 04 Feb 2024 08:57:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#68146] [PATCH v2 1/3] gnu: Add libdisplay-info. References: In-Reply-To: Resent-From: Ahmad Draidi Original-Sender: "Debbugs-submit" Resent-CC: , guix-patches@gnu.org Resent-Date: Sun, 04 Feb 2024 13:57:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68146 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 68146@debbugs.gnu.org Cc: Ahmad Draidi , ( , Christopher Baines , Ludovic =?utf-8?q?Court=C3=A8s?= , Mathieu Othacehe , Raghav Gururajan , Ricardo Wurmus , Simon Tournier , Tobias Geerinckx-Rice , jgart X-Debbugs-Original-Xcc: ( , Christopher Baines , Ludovic =?utf-8?q?Court=C3=A8s?= , Mathieu Othacehe , Raghav Gururajan , Ricardo Wurmus , Simon Tournier , Tobias Geerinckx-Rice , jgart Received: via spool by 68146-submit@debbugs.gnu.org id=B68146.17070549882282 (code B ref 68146); Sun, 04 Feb 2024 13:57:02 +0000 Received: (at 68146) by debbugs.gnu.org; 4 Feb 2024 13:56:28 +0000 Received: from localhost ([127.0.0.1]:48458 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rWcyx-0000aj-J8 for submit@debbugs.gnu.org; Sun, 04 Feb 2024 08:56:28 -0500 Received: from rainycloud.ext.redscript.org ([2402:28c0:4:1081::1]:33352) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rWcys-0000a9-IU for 68146@debbugs.gnu.org; Sun, 04 Feb 2024 08:56:26 -0500 Received: from localhost.localdomain (bba-86-99-233-146.alshamil.net.ae [86.99.233.146]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by rainycloud.ext.redscript.org (Postfix) with ESMTPSA id 63F8F4370; Sun, 4 Feb 2024 13:56:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redscript.org; s=mail1-rsa; t=1707054961; h=from:from: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; bh=ZPeTHhQo+rUibtdbk/8W6WjLj7U7fzVveIbMHcXsTP8=; b=Zqx1+Gq7J8Lq+j1L03cA9eiV3O2cHjn8w7/iP95DdS2JjddnxduzFeMcqLScUxXWvwIEAb VUxZKM69msYm8XV4L19oWahlElVq8KZ7EJ7F14dmQlyDf8fhc2+sfaDeuYEAhmK5VCqqVP IAh1VJIUEN5MYFwHM/2aOOiDa1l8u+voyORc/RGdGxS2xlAWu9AVElyH6vFakrYnc/9odD lO0CJXphrwgEyc9s7G2gIDCT45f11ig9BkxBNoDFMeVz8+6xtZH7eUDygdtARA9jnU3uIz xUIr69MVVQGsKGi+ar7yE/4VymaYrEMZVjTi1nL3/cqYXEhzmUdJ6I4vgFiqwhYwuwXx7O 396r1Ts9Ir6fCNoOiMdRmy5kMt8bfJTbpMTbhsYTBKRwFIMwYOJoqiAyZI/5Kq9JrKUf6y +Hig3GPixQ/4h/jdlY9mJxGSQIWrqZXWGd0o/XkZ/tX7FNIucSMh5hxWZssf3cCIRk8seU qA8fQp483hRBgJFYlwFSsSa/wXaXIjT1ME3I33kFlKjMmgoo+yUhvGDJH5+Juf9joe/y5n mz6qhfznqV59Xri9w/+DZVPW5+eJGciKWqGzdgIlKlXWZvaVtZYmzr9Q9idSANXqkr283e SrSQ8mgNHs4A3BafVVqyRs4d487K+/x7H7Msieou3ytn9DnZpcHoU= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=redscript.org; s=mail1-ed25519; t=1707054961; h=from:from: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; bh=ZPeTHhQo+rUibtdbk/8W6WjLj7U7fzVveIbMHcXsTP8=; b=Iufn8YaFtfptz0L2b4/4MlcWcdxspTUNNw0ixKcdz5buQFPhzQ3a9c1YTBMWj2EUtTnuJw KJbpotHE6a2MNkBw== Date: Sun, 4 Feb 2024 17:54:41 +0400 Message-ID: <8ccce65087f8378fb064d1c5fb1394b743e06eaa.1707054720.git.a.r.draidi@redscript.org> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 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: , Reply-to: Ahmad Draidi X-ACL-Warn: , Ahmad Draidi via Guix-patches X-Patchwork-Original-From: Ahmad Draidi via Guix-patches via From: Ahmad Draidi Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/freedesktop.scm (libdisplay-info): New variable. Change-Id: Ifa03e4f21dd869c664c5bbf47af4ea1b7cf63d44 --- v2: Rebase gnu/packages/freedesktop.scm | 40 ++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) base-commit: abeffc82379c4f9bd2e6226ea27453b22cb4e0c8 diff --git a/gnu/packages/freedesktop.scm b/gnu/packages/freedesktop.scm index 648ebad408..9ba444cb0a 100644 --- a/gnu/packages/freedesktop.scm +++ b/gnu/packages/freedesktop.scm @@ -33,6 +33,7 @@ ;;; Copyright © 2022 Petr Hodina ;;; Copyright © 2022 muradm ;;; Copyright © 2023 Alex Devaure +;;; Copyright © 2024 Ahmad Draidi ;;; ;;; This file is part of GNU Guix. ;;; @@ -97,6 +98,7 @@ (define-module (gnu packages freedesktop) #:use-module (gnu packages graphviz) #:use-module (gnu packages gstreamer) #:use-module (gnu packages gtk) + #:use-module (gnu packages hardware) #:use-module (gnu packages hunspell) #:use-module (gnu packages ibus) #:use-module (gnu packages image) @@ -114,6 +116,7 @@ (define-module (gnu packages freedesktop) #:use-module (gnu packages package-management) #:use-module (gnu packages perl) #:use-module (gnu packages perl-check) + #:use-module (gnu packages pciutils) #:use-module (gnu packages pkg-config) #:use-module (gnu packages polkit) #:use-module (gnu packages python) @@ -2102,6 +2105,43 @@ (define-public colord-gtk that wish to perform colour calibration.") (license license:lgpl2.1+))) +(define-public libdisplay-info + ;; Latest commit passes tests while 0.1.1 doesn't + (let ((commit "ebee35935dad01478ae1ae5ead298c4cd8018ac2") + (revision "1")) + (package + (name "libdisplay-info") + (version (git-version "0.1.1" revision commit)) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://gitlab.freedesktop.org/emersion/libdisplay-info") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1ly8acdjxn8l55y0wc07n7pb6rzh9dpr1vbsakdib2zrl0i5yh3a")))) + (build-system meson-build-system) + (arguments + (list + #:phases #~(modify-phases %standard-phases + (add-before 'configure 'fix-meson-file + (lambda* (#:key native-inputs inputs #:allow-other-keys) + (substitute* "meson.build" + (("/usr/share/hwdata/pnp.ids") + (string-append (assoc-ref (or native-inputs inputs) + "hwdata") + "/share/hwdata/pnp.ids")))))))) + (native-inputs (list edid-decode + `(,hwdata "pnp") pkg-config python-wrapper)) + (home-page "https://gitlab.freedesktop.org/emersion/libdisplay-info") + (synopsis "EDID and DisplayID library") + (description + "libdisplay-info is an EDID and DisplayID library that provides a set of + high-level, easy-to-use, opinionated functions as well as low-level functions +to access detailed information.") + (license license:expat)))) + (define-public libfprint (package (name "libfprint")