unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Zheng Junjie <zhengjunjie@iscas.ac.cn>
To: Wilko Meyer <w@wmeyer.eu>
Cc: 72302-done@debbugs.gnu.org
Subject: bug#72302: [PATCH] gnu: Add drm-info.
Date: Tue, 30 Jul 2024 14:45:24 +0800	[thread overview]
Message-ID: <87cymvz8cb.fsf@iscas.ac.cn> (raw)
In-Reply-To: <a4041a3edad944509633f36eb962275f00236cf2.1721948765.git.w@wmeyer.eu> (Wilko Meyer's message of "Fri, 26 Jul 2024 01:06:05 +0200")

[-- Attachment #1: Type: text/plain, Size: 2477 bytes --]

Wilko Meyer <w@wmeyer.eu> writes:

> * gnu/packages/freedesktop.scm (drm-info): New variable.
>
> Change-Id: I02a0bdcbb49644de9884038cd36bf6d8482f84ae
> ---
> Hi Guix,
>
> Needed drm_info today while debugging a /dev/dri/card* related
> issue. As the tool isn't yet available in guix, here's a patch adding
> it.
>
> FTR: There's a comment in gnu/packages/hardware.scm on l261 referring
> to it with a comment saying:
>
> ;; Not packaged in Guix (TODO).
>
> which could be removed after applying this patch. I would've done it
> myself and included the removal in this patch, but wasn't too sure on
> how to handle the commit messages right for such a case.
>
> Cheers!
>
>  gnu/packages/freedesktop.scm | 26 ++++++++++++++++++++++++++
>  1 file changed, 26 insertions(+)
>
> diff --git a/gnu/packages/freedesktop.scm b/gnu/packages/freedesktop.scm
> index 222ea0fb0b..05b016f802 100644
> --- a/gnu/packages/freedesktop.scm
> +++ b/gnu/packages/freedesktop.scm
> @@ -38,6 +38,7 @@
>  ;;; Copyright © 2022 Samuel Culpepper <sculpepper@newstore.com>
>  ;;; Copyright © 2024 aurtzy <aurtzy@gmail.com>
>  ;;; Copyright © 2024 Dariqq <dariqq@posteo.net>
> +;;; Copyright © 2024 Wilko Meyer <w@wmeyer.eu>
>  ;;;
>  ;;; This file is part of GNU Guix.
>  ;;;
> @@ -2475,6 +2476,31 @@ (define-public desktop-file-utils
>  @end table")
>      (license license:gpl2+)))
>  
> +(define-public drm-info
> +  (package
> +    (name "drm-info")
> +    (version "2.6.0")
> +    (source
> +     (origin
> +       (method git-fetch)
> +       (uri (git-reference
> +             (url "https://gitlab.freedesktop.org/emersion/drm_info.git")
> +             (commit (string-append "v" version))))
> +       (file-name (git-file-name name version))
> +       (sha256
> +        (base32
> +         "0fc1rd3c16ddzbdpcj473ykszipzblj98lk376slk63v7mqvc1qm"))))
> +    (build-system meson-build-system)
> +    (native-inputs
> +     (list pkg-config))
> +    (inputs
> +     (list libdrm json-c))
> +    (home-page "https://gitlab.freedesktop.org/emersion/drm_info")
> +    (synopsis "Dump DRM device info")
> +    (description "Displaying and dumping information on Direct
> +Rendering Manager devices.")
> +    (license license:expat)))
> +
>  (define-public xdg-user-dirs
>    (package
>      (name "xdg-user-dirs")
>
> base-commit: 07293655b77619b61bd25abe692d0218c3d8142b

Enable libpci and man-pages option, and pushed.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

      reply	other threads:[~2024-07-30  6:46 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-07-25 23:06 [bug#72302] [PATCH] gnu: Add drm-info Wilko Meyer
2024-07-30  6:45 ` Zheng Junjie [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87cymvz8cb.fsf@iscas.ac.cn \
    --to=zhengjunjie@iscas.ac.cn \
    --cc=72302-done@debbugs.gnu.org \
    --cc=w@wmeyer.eu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).