From patchwork Sat Dec 30 13:28:46 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Ahmad Draidi X-Patchwork-Id: 58208 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 236CE27BBEA; Sat, 30 Dec 2023 13:31:19 +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=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED autolearn=ham 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 DEED027BBE2 for ; Sat, 30 Dec 2023 13:31:17 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rJZQe-0003gn-Vx; Sat, 30 Dec 2023 08:31:05 -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 1rJZQc-0003eu-6F for guix-patches@gnu.org; Sat, 30 Dec 2023 08:31:03 -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 1rJZQb-0006hA-TS for guix-patches@gnu.org; Sat, 30 Dec 2023 08:31:01 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rJZQc-0007NH-DS for guix-patches@gnu.org; Sat, 30 Dec 2023 08:31:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#68146] [PATCH 1/3] gnu: Add libdisplay-info. Resent-From: Ahmad Draidi Original-Sender: "Debbugs-submit" Resent-CC: , guix-patches@gnu.org Resent-Date: Sat, 30 Dec 2023 13:31: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.170394304726712 (code B ref 68146); Sat, 30 Dec 2023 13:31:02 +0000 Received: (at 68146) by debbugs.gnu.org; 30 Dec 2023 13:30:47 +0000 Received: from localhost ([127.0.0.1]:43299 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rJZQM-0006w5-C8 for submit@debbugs.gnu.org; Sat, 30 Dec 2023 08:30:46 -0500 Received: from rainycloud.ext.redscript.org ([2402:28c0:4:1081::1]:33324) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rJZQJ-0006fH-IA for 68146@debbugs.gnu.org; Sat, 30 Dec 2023 08:30:44 -0500 Received: from localhost.localdomain (bba-2-51-3-250.alshamil.net.ae [2.51.3.250]) (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 990F07BB; Sat, 30 Dec 2023 13:30:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redscript.org; s=mail1-rsa; t=1703943035; 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: in-reply-to:in-reply-to:references:references; bh=FHZ6GEXqzwRo64zT6z1QBqWfuwFUblT32jvQk4c47aQ=; b=GjPbObM+ToS2yuO+eYZYDub1GCengi+1mSmcs3sQBljsD4CuPQ0K9N8HURnfWj/fjkubbj v+07L3vjktGDQv+qId/8EfWc0Qx7yt3/520Q7iZzOKeEtY2deKw7olUVbkBKds7DvvNQnG K5MHJahEvQJldksxpIOxXHZgwWhKetsXTjEqUTcsfdHh3P62nQUxnhZ4OmT9JRb6Cy573s l5JbDdHYrJfbGvS+kWztbk1TVVELj2ilg6MJDsB74LJIufJVTrQSprJwE59ebVfBg+6dax 2qgHHoDN95pPAV6YuCG3HmUHMNY94BuePI1+uhS1Golkg3BLvfO3Ljuo9lgZFAC2k+W5kD 8foq7Pixd1YHr7qLUw6mPXTYCxDBwKC55ksSszGKhRzDH+UegKLwVBfrGMKFaMaGZBd1NT wrJTbzFFnrFjqm8R6I8HQUIawnZ0cN7Li2Avh0hsF6YmFfW8+UOLtkXLM32jQGF9SEROJv PHHz3dxt46KbJ2/RwDDDnjQRs9ed5vm4RCJ+Llq7RKoEViSa8sUjOFprnkTXuPYIYgfqLl 7rpKulyrLMdHFvXgA0IM/3dJODbp/E8M3Ct4mhHiigCDrATYFnMDEO0Zc0us9YV6wRAiLr LUdnfw0f9/XS5sfVDpPfCqevOFO4REda5V0jj8s3R2+CsDKxwm5Nw= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=redscript.org; s=mail1-ed25519; t=1703943035; 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: in-reply-to:in-reply-to:references:references; bh=FHZ6GEXqzwRo64zT6z1QBqWfuwFUblT32jvQk4c47aQ=; b=Q59mcD+TM7wmvvehz7V/MAyQEYnJ2syHEMbfyHjJD7OKShfFjH3RxJPbiVpRGoObn9kppM sv+sd+IPPK0KF0BQ== Date: Sat, 30 Dec 2023 17:28:46 +0400 Message-ID: <955298d0cd8d6fb1ade9984cfe2dde234d64f6c9.1703942286.git.a.r.draidi@redscript.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: References: 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: Id9d8a7c92f58a89310d52e62c335f932acb0adb3 --- gnu/packages/freedesktop.scm | 40 ++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/gnu/packages/freedesktop.scm b/gnu/packages/freedesktop.scm index 648ebad408..9cf7804f10 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 © 2023 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")