x{cursor{gen,-themes},ev,fsinfo,randr,vinfo}: refactor and move to pkgs/by-name from xorg namespace (#435457)

This commit is contained in:
jopejoe1
2025-08-26 22:41:10 +02:00
committed by GitHub
10 changed files with 346 additions and 255 deletions
@@ -0,0 +1,49 @@
{
lib,
stdenv,
fetchurl,
pkg-config,
xcursorgen,
xorgproto,
libxcursor,
writeScript,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "xcursor-themes";
version = "1.0.7";
src = fetchurl {
url = "mirror://xorg/individual/data/xcursor-themes-${finalAttrs.version}.tar.xz";
hash = "sha256-lbro9Igj2JSgW/Qt+/RTZ0q3296xHivAeehSWtRzeMg=";
};
strictDeps = true;
nativeBuildInputs = [
pkg-config
xcursorgen
];
buildInputs = [
xorgproto
libxcursor
];
configureFlags = [ "--with-cursordir=$(out)/share/icons" ];
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/data/ \
| sort -V | tail -n1)"
update-source-version ${finalAttrs.pname} "$version"
'';
};
meta = {
description = "Default set of cursor themes for use with libXcursor.";
homepage = "https://gitlab.freedesktop.org/xorg/data/cursors";
license = lib.licenses.x11;
maintainers = [ ];
platforms = lib.platforms.unix;
};
})
+51
View File
@@ -0,0 +1,51 @@
{
lib,
stdenv,
fetchurl,
pkg-config,
libpng,
libx11,
libxcursor,
xorgproto,
writeScript,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "xcursorgen";
version = "1.0.9";
src = fetchurl {
url = "mirror://xorg/individual/app/xcursorgen-${finalAttrs.version}.tar.xz";
hash = "sha256-DMnhVqyEyhbqkCcQrzXg+v+lHRN5cHHjtLbMfL1JO7w=";
};
strictDeps = true;
nativeBuildInputs = [ pkg-config ];
buildInputs = [
libpng
libx11
libxcursor
xorgproto
];
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 = "prepares X11 cursor sets for use with libXcursor";
homepage = "https://gitlab.freedesktop.org/xorg/app/xcursorgen";
license = lib.licenses.hpndSellVariant;
mainProgram = "xcursorgen";
maintainers = [ ];
platforms = lib.platforms.unix;
};
})
+54
View File
@@ -0,0 +1,54 @@
{
lib,
stdenv,
fetchurl,
pkg-config,
xorgproto,
libx11,
libxrandr,
writeScript,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "xev";
version = "1.2.6";
src = fetchurl {
url = "mirror://xorg/individual/app/xev-${finalAttrs.version}.tar.xz";
hash = "sha256-YeHF4AismXOsp83d826d90EOdwg7Aw6wT03HN8UYB9c=";
};
strictDeps = true;
nativeBuildInputs = [ pkg-config ];
buildInputs = [
xorgproto
libx11
libxrandr
];
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 = "X event monitor";
longDescription = ''
xev creates a window and then asks the X server to send it X11 events whenever anything
happens to the window (such as it being moved, resized, typed in, clicked in, etc.).
You can also attach it to an existing window. It is useful for seeing what causes events to
occur and to display the information that they contain; it is essentially a debugging and
development tool, and should not be needed in normal usage.
'';
homepage = "https://gitlab.freedesktop.org/xorg/app/xev";
license = lib.licenses.x11;
mainProgram = "xev";
maintainers = [ ];
platforms = lib.platforms.unix;
};
})
+56
View File
@@ -0,0 +1,56 @@
{
lib,
stdenv,
fetchurl,
pkg-config,
xorgproto,
libfs,
writeScript,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "xfsinfo";
version = "1.0.8";
src = fetchurl {
url = "mirror://xorg/individual/app/xfsinfo-${finalAttrs.version}.tar.xz";
hash = "sha256-roBZK2Bj2pKOPQyBAjcJsvopoE/NpJ9sNjrFedl/I6I=";
};
strictDeps = true;
nativeBuildInputs = [ pkg-config ];
buildInputs = [
xorgproto
libfs
];
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 = "X font server information utility";
longDescription = ''
xfsinfo is a utility for displaying information about an X font server.
It is used to examine the capabilities of a server, the predefined values for various
parameters used in communicating between clients and the server, and the font catalogues and
alternate servers that are available.
'';
homepage = "https://gitlab.freedesktop.org/xorg/app/xfsinfo";
license = with lib.licenses; [
mitOpenGroup
hpndSellVariant
];
mainProgram = "xfsinfo";
maintainers = [ ];
platforms = lib.platforms.unix;
};
})
+57
View File
@@ -0,0 +1,57 @@
{
lib,
stdenv,
fetchurl,
pkg-config,
xorgproto,
libx11,
libxrandr,
libxrender,
writeScript,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "xrandr";
version = "1.5.3";
src = fetchurl {
url = "mirror://xorg/individual/app/xrandr-${finalAttrs.version}.tar.xz";
hash = "sha256-+N11Zq23QUf6uZZGgLa7re6Hz0Bqf8/1Fxil5pSbhBw=";
};
strictDeps = true;
nativeBuildInputs = [ pkg-config ];
buildInputs = [
xorgproto
libx11
libxrandr
libxrender
];
postInstall = ''
# remove useless xkeystone script
# it is written in a language not packaged in nixpkgs
rm $out/bin/xkeystone
'';
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 = "Command line interface to X11 Resize, Rotate, and Reflect (RandR) extension";
homepage = "https://gitlab.freedesktop.org/xorg/app/xrandr";
license = lib.licenses.hpndSellVariant;
mainProgram = "xrandr";
maintainers = [ ];
platforms = lib.platforms.unix;
};
})
+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;
};
})
+12 -224
View File
@@ -55,7 +55,11 @@
xbitmaps,
xcb-proto,
xcmsdb,
xcursorgen,
xcursor-themes,
xdriinfo,
xev,
xfsinfo,
xkeyboard-config,
xlsatoms,
xlsclients,
@@ -66,8 +70,10 @@
xorgproto,
xorg-sgml-doctools,
xprop,
xrandr,
xrefresh,
xtrans,
xvinfo,
xwininfo,
xwud,
}:
@@ -93,15 +99,20 @@ self: with self; {
transset
xbitmaps
xcmsdb
xcursorgen
xdriinfo
xev
xfsinfo
xlsatoms
xlsclients
xlsfonts
xmodmap
xorgproto
xprop
xrandr
xrefresh
xtrans
xvinfo
xwininfo
xwud
;
@@ -142,6 +153,7 @@ self: with self; {
xcbutilrenderutil = libxcb-render-util;
xcbutilwm = libxcb-wm;
xkeyboardconfig = xkeyboard-config;
xcursorthemes = xcursor-themes;
xorgcffiles = xorg-cf-files;
xorgdocs = xorg-docs;
xorgsgmldoctools = xorg-sgml-doctools;
@@ -2864,78 +2876,6 @@ self: with self; {
})
) { };
# THIS IS A GENERATED FILE. DO NOT EDIT!
xcursorgen = callPackage (
{
stdenv,
pkg-config,
fetchurl,
libpng,
libX11,
libXcursor,
xorgproto,
testers,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "xcursorgen";
version = "1.0.9";
builder = ./builder.sh;
src = fetchurl {
url = "mirror://xorg/individual/app/xcursorgen-1.0.9.tar.xz";
sha256 = "1g1v96yprk5nnkip2w3r2cfsbzzsw0ssy417j3m1djl4mibf3j8c";
};
hardeningDisable = [
"bindnow"
"relro"
];
strictDeps = true;
nativeBuildInputs = [ pkg-config ];
buildInputs = [
libpng
libX11
libXcursor
xorgproto
];
passthru.tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage;
meta = {
pkgConfigModules = [ ];
platforms = lib.platforms.unix;
};
})
) { };
# THIS IS A GENERATED FILE. DO NOT EDIT!
xcursorthemes = callPackage (
{
stdenv,
pkg-config,
fetchurl,
libXcursor,
testers,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "xcursor-themes";
version = "1.0.7";
builder = ./builder.sh;
src = fetchurl {
url = "mirror://xorg/individual/data/xcursor-themes-1.0.7.tar.xz";
sha256 = "1j3qfga5llp8g702n7mivvdvfjk7agsgnbglbfh99n13i3sfiflm";
};
hardeningDisable = [
"bindnow"
"relro"
];
strictDeps = true;
nativeBuildInputs = [ pkg-config ];
buildInputs = [ libXcursor ];
passthru.tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage;
meta = {
pkgConfigModules = [ ];
platforms = lib.platforms.unix;
};
})
) { };
# THIS IS A GENERATED FILE. DO NOT EDIT!
xdm = callPackage (
{
@@ -3054,44 +2994,6 @@ self: with self; {
})
) { };
# THIS IS A GENERATED FILE. DO NOT EDIT!
xev = callPackage (
{
stdenv,
pkg-config,
fetchurl,
libX11,
xorgproto,
libXrandr,
testers,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "xev";
version = "1.2.6";
builder = ./builder.sh;
src = fetchurl {
url = "mirror://xorg/individual/app/xev-1.2.6.tar.xz";
sha256 = "1mq7332kgisd9yq0w0rv11vhwhgpkmpg7pfdlyn776dc13hcbqb1";
};
hardeningDisable = [
"bindnow"
"relro"
];
strictDeps = true;
nativeBuildInputs = [ pkg-config ];
buildInputs = [
libX11
xorgproto
libXrandr
];
passthru.tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage;
meta = {
pkgConfigModules = [ ];
platforms = lib.platforms.unix;
};
})
) { };
# THIS IS A GENERATED FILE. DO NOT EDIT!
xeyes = callPackage (
{
@@ -5210,42 +5112,6 @@ self: with self; {
})
) { };
# THIS IS A GENERATED FILE. DO NOT EDIT!
xfsinfo = callPackage (
{
stdenv,
pkg-config,
fetchurl,
libFS,
xorgproto,
testers,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "xfsinfo";
version = "1.0.7";
builder = ./builder.sh;
src = fetchurl {
url = "mirror://xorg/individual/app/xfsinfo-1.0.7.tar.xz";
sha256 = "0x48p4hk0lds2s8nwzgfl616r99s28ydx02zs7p1fxxs3i2wmwwj";
};
hardeningDisable = [
"bindnow"
"relro"
];
strictDeps = true;
nativeBuildInputs = [ pkg-config ];
buildInputs = [
libFS
xorgproto
];
passthru.tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage;
meta = {
pkgConfigModules = [ ];
platforms = lib.platforms.unix;
};
})
) { };
# THIS IS A GENERATED FILE. DO NOT EDIT!
xgamma = callPackage (
{
@@ -5910,46 +5776,6 @@ self: with self; {
})
) { };
# THIS IS A GENERATED FILE. DO NOT EDIT!
xrandr = callPackage (
{
stdenv,
pkg-config,
fetchurl,
libX11,
xorgproto,
libXrandr,
libXrender,
testers,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "xrandr";
version = "1.5.3";
builder = ./builder.sh;
src = fetchurl {
url = "mirror://xorg/individual/app/xrandr-1.5.3.tar.xz";
sha256 = "0744kfafd98q2zswyzva837qgvmdpfv80ilnp7x4fhdpmmk7bpgq";
};
hardeningDisable = [
"bindnow"
"relro"
];
strictDeps = true;
nativeBuildInputs = [ pkg-config ];
buildInputs = [
libX11
xorgproto
libXrandr
libXrender
];
passthru.tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage;
meta = {
pkgConfigModules = [ ];
platforms = lib.platforms.unix;
};
})
) { };
# THIS IS A GENERATED FILE. DO NOT EDIT!
xrdb = callPackage (
{
@@ -6196,44 +6022,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 (
{
@@ -371,7 +371,11 @@ print OUT <<EOF;
xbitmaps,
xcb-proto,
xcmsdb,
xcursorgen,
xcursor-themes,
xdriinfo,
xev,
xfsinfo,
xkeyboard-config,
xlsatoms,
xlsclients,
@@ -382,8 +386,10 @@ print OUT <<EOF;
xorgproto,
xorg-sgml-doctools,
xprop,
xrandr,
xrefresh,
xtrans,
xvinfo,
xwininfo,
xwud,
}:
@@ -409,15 +415,20 @@ self: with self; {
transset
xbitmaps
xcmsdb
xcursorgen
xdriinfo
xev
xfsinfo
xlsatoms
xlsclients
xlsfonts
xmodmap
xorgproto
xprop
xrandr
xrefresh
xtrans
xvinfo
xwininfo
xwud
;
@@ -458,6 +469,7 @@ self: with self; {
xcbutilrenderutil = libxcb-render-util;
xcbutilwm = libxcb-wm;
xkeyboardconfig = xkeyboard-config;
xcursorthemes = xcursor-themes;
xorgcffiles = xorg-cf-files;
xorgdocs = xorg-docs;
xorgsgmldoctools = xorg-sgml-doctools;
-25
View File
@@ -543,16 +543,8 @@ self: super:
};
});
xev = addMainProgram super.xev { };
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 // {
@@ -886,13 +878,6 @@ self: super:
xclock = addMainProgram super.xclock { };
xcompmgr = addMainProgram super.xcompmgr { };
xconsole = addMainProgram super.xconsole { };
xcursorgen = addMainProgram super.xcursorgen { };
xcursorthemes = super.xcursorthemes.overrideAttrs (attrs: {
nativeBuildInputs = attrs.nativeBuildInputs ++ [ xorg.xcursorgen ];
buildInputs = attrs.buildInputs ++ [ xorg.xorgproto ];
configureFlags = [ "--with-cursordir=$(out)/share/icons" ];
});
xinit =
(super.xinit.override {
@@ -980,7 +965,6 @@ self: super:
xfd = addMainProgram super.xfd { };
xfontsel = addMainProgram super.xfontsel { };
xfs = addMainProgram super.xfs { };
xfsinfo = addMainProgram super.xfsinfo { };
xgamma = addMainProgram super.xgamma { };
xgc = addMainProgram super.xgc { };
xhost = addMainProgram super.xhost { };
@@ -1002,15 +986,6 @@ self: super:
};
});
xrandr = super.xrandr.overrideAttrs (attrs: {
postInstall = ''
rm $out/bin/xkeystone
'';
meta = attrs.meta // {
mainProgram = "xrandr";
};
});
xset = addMainProgram super.xset { };
xsetroot = addMainProgram super.xsetroot { };
xsm = addMainProgram super.xsm { };
-6
View File
@@ -16,15 +16,12 @@ mirror://xorg/individual/app/xcalc-1.1.2.tar.xz
mirror://xorg/individual/app/xclock-1.1.1.tar.xz
mirror://xorg/individual/app/xcompmgr-1.1.10.tar.xz
mirror://xorg/individual/app/xconsole-1.1.0.tar.xz
mirror://xorg/individual/app/xcursorgen-1.0.9.tar.xz
mirror://xorg/individual/app/xdm-1.1.17.tar.xz
mirror://xorg/individual/app/xdpyinfo-1.3.4.tar.xz
mirror://xorg/individual/app/xev-1.2.6.tar.xz
mirror://xorg/individual/app/xeyes-1.3.0.tar.xz
mirror://xorg/individual/app/xfd-1.1.4.tar.xz
mirror://xorg/individual/app/xfontsel-1.1.1.tar.xz
mirror://xorg/individual/app/xfs-1.2.2.tar.xz
mirror://xorg/individual/app/xfsinfo-1.0.7.tar.xz
mirror://xorg/individual/app/xgamma-1.0.7.tar.xz
mirror://xorg/individual/app/xgc-1.0.6.tar.xz
mirror://xorg/individual/app/xhost-1.0.10.tar.xz
@@ -40,16 +37,13 @@ mirror://xorg/individual/app/xmag-1.0.8.tar.xz
mirror://xorg/individual/app/xmessage-1.0.7.tar.xz
mirror://xorg/individual/app/xmore-1.0.4.tar.xz
mirror://xorg/individual/app/xpr-1.2.0.tar.xz
mirror://xorg/individual/app/xrandr-1.5.3.tar.xz
mirror://xorg/individual/app/xrdb-1.2.2.tar.xz
mirror://xorg/individual/app/xset-1.2.5.tar.xz
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/data/xcursor-themes-1.0.7.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
mirror://xorg/individual/driver/xf86-input-keyboard-2.1.0.tar.xz