xvinfo: refactor and move to pkgs/by-name from xorg namespace

This commit is contained in:
quantenzitrone
2025-08-21 04:14:51 +02:00
parent f4db99ab73
commit 21a80441cc
5 changed files with 59 additions and 46 deletions
+55
View File
@@ -0,0 +1,55 @@
{
lib,
stdenv,
fetchurl,
pkg-config,
xorgproto,
libx11,
libxv,
libxext,
writeScript,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "xvinfo";
version = "1.1.5";
src = fetchurl {
url = "mirror://xorg/individual/app/xvinfo-${finalAttrs.version}.tar.xz";
hash = "sha256-Pt5x7LJtlhTMvGkWcgKF6VosfgxeGbhXDqr3KtfFxAQ=";
};
strictDeps = true;
nativeBuildInputs = [ pkg-config ];
buildInputs = [
xorgproto
libx11
libxv
libxext
];
passthru = {
updateScript = writeScript "update-${finalAttrs.pname}" ''
#!/usr/bin/env nix-shell
#!nix-shell -i bash -p common-updater-scripts
version="$(list-directory-versions --pname ${finalAttrs.pname} \
--url https://xorg.freedesktop.org/releases/individual/app/ \
| sort -V | tail -n1)"
update-source-version ${finalAttrs.pname} "$version"
'';
};
meta = {
description = "Utility to print out X-Video extension adaptor information";
longDescription = ''
xvinfo prints out the capabilities of any video adaptors associated with the display that are
accessible through the X-Video extension.
'';
homepage = "https://gitlab.freedesktop.org/xorg/app/xvinfo";
license = lib.licenses.x11;
mainProgram = "xvinfo";
maintainers = [ ];
platforms = lib.platforms.unix;
};
})
+2 -38
View File
@@ -53,6 +53,7 @@
xrandr,
xrefresh,
xtrans,
xvinfo,
xwininfo,
xwud,
}:
@@ -91,6 +92,7 @@ self: with self; {
xrandr
xrefresh
xtrans
xvinfo
xwininfo
xwud
;
@@ -6802,44 +6804,6 @@ self: with self; {
})
) { };
# THIS IS A GENERATED FILE. DO NOT EDIT!
xvinfo = callPackage (
{
stdenv,
pkg-config,
fetchurl,
libX11,
xorgproto,
libXv,
testers,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "xvinfo";
version = "1.1.5";
builder = ./builder.sh;
src = fetchurl {
url = "mirror://xorg/individual/app/xvinfo-1.1.5.tar.xz";
sha256 = "0164qpbjmxxa1rbvh6ay1iz2qnp9hl1745k9pk6195kdnbn73piy";
};
hardeningDisable = [
"bindnow"
"relro"
];
strictDeps = true;
nativeBuildInputs = [ pkg-config ];
buildInputs = [
libX11
xorgproto
libXv
];
passthru.tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage;
meta = {
pkgConfigModules = [ ];
platforms = lib.platforms.unix;
};
})
) { };
# THIS IS A GENERATED FILE. DO NOT EDIT!
xwd = callPackage (
{
@@ -346,6 +346,7 @@ print OUT <<EOF;
xrandr,
xrefresh,
xtrans,
xvinfo,
xwininfo,
xwud,
}:
@@ -384,6 +385,7 @@ self: with self; {
xrandr
xrefresh
xtrans
xvinfo
xwininfo
xwud
;
-7
View File
@@ -685,13 +685,6 @@ self: super:
xeyes = addMainProgram super.xeyes { };
xvinfo = super.xvinfo.overrideAttrs (attrs: {
buildInputs = attrs.buildInputs ++ [ xorg.libXext ];
meta = attrs.meta // {
mainProgram = "xvinfo";
};
});
xkbcomp = super.xkbcomp.overrideAttrs (attrs: {
configureFlags = [ "--with-xkb-config-root=${xorg.xkeyboardconfig}/share/X11/xkb" ];
meta = attrs.meta // {
-1
View File
@@ -49,7 +49,6 @@ mirror://xorg/individual/app/xsetroot-1.1.3.tar.xz
mirror://xorg/individual/app/xsm-1.0.6.tar.xz
mirror://xorg/individual/app/xstdcmap-1.0.5.tar.xz
mirror://xorg/individual/app/xtrap-1.0.3.tar.bz2
mirror://xorg/individual/app/xvinfo-1.1.5.tar.xz
mirror://xorg/individual/app/xwd-1.0.9.tar.xz
mirror://xorg/individual/driver/xf86-input-evdev-2.11.0.tar.xz
mirror://xorg/individual/driver/xf86-input-joystick-1.6.4.tar.xz