xeyes: 1.3.0 -> 1.3.1, refactor & move to pkgs/by-name from xorg namespace

This commit is contained in:
quantenzitrone
2025-09-24 18:28:37 +02:00
parent 63640282de
commit 3ccc4089b6
5 changed files with 63 additions and 51 deletions
+59
View File
@@ -0,0 +1,59 @@
{
lib,
stdenv,
fetchurl,
pkg-config,
xorgproto,
libx11,
libxcb,
libxext,
libxi,
libxmu,
libxrender,
libxt,
writeScript,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "xeyes";
version = "1.3.1";
src = fetchurl {
url = "mirror://xorg/individual/app/xeyes-${finalAttrs.version}.tar.xz";
hash = "sha256-VgjXa3sarF7X8i8ba1rXTvmMhpMiDzK0uH3M7kqVbqo=";
};
strictDeps = true;
nativeBuildInputs = [ pkg-config ];
buildInputs = [
xorgproto
libx11
libxcb
libxext
libxi
libxmu
libxrender
libxt
];
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 = "A \"follow the mouse\" X demo, using the X SHAPE extension";
homepage = "https://gitlab.freedesktop.org/xorg/app/xeyes";
license = lib.licenses.x11;
mainProgram = "xeyes";
maintainers = [ ];
platforms = lib.platforms.unix;
};
})
+2 -48
View File
@@ -101,6 +101,7 @@
xcursor-themes,
xdriinfo,
xev,
xeyes,
xfontsel,
xfsinfo,
xgamma,
@@ -167,6 +168,7 @@ self: with self; {
xcursorgen
xdriinfo
xev
xeyes
xfontsel
xfsinfo
xgamma
@@ -1389,54 +1391,6 @@ self: with self; {
})
) { };
# THIS IS A GENERATED FILE. DO NOT EDIT!
xeyes = callPackage (
{
stdenv,
pkg-config,
fetchurl,
libX11,
libxcb,
libXext,
libXi,
libXmu,
xorgproto,
libXrender,
libXt,
testers,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "xeyes";
version = "1.3.0";
builder = ./builder.sh;
src = fetchurl {
url = "mirror://xorg/individual/app/xeyes-1.3.0.tar.xz";
sha256 = "08rhfp5xlmdbyxkvxhgjxdn6vwzrbrjyd7jkk8b7wi1kpw0ccl09";
};
hardeningDisable = [
"bindnow"
"relro"
];
strictDeps = true;
nativeBuildInputs = [ pkg-config ];
buildInputs = [
libX11
libxcb
libXext
libXi
libXmu
xorgproto
libXrender
libXt
];
passthru.tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage;
meta = {
pkgConfigModules = [ ];
platforms = lib.platforms.unix;
};
})
) { };
# THIS IS A GENERATED FILE. DO NOT EDIT!
xf86inputevdev = callPackage (
{
@@ -428,6 +428,7 @@ print OUT <<EOF;
xcursor-themes,
xdriinfo,
xev,
xeyes,
xfontsel,
xfsinfo,
xgamma,
@@ -494,6 +495,7 @@ self: with self; {
xcursorgen
xdriinfo
xev
xeyes
xfontsel
xfsinfo
xgamma
-2
View File
@@ -411,8 +411,6 @@ self: super:
};
});
xeyes = addMainProgram super.xeyes { };
xkbcomp = super.xkbcomp.overrideAttrs (attrs: {
configureFlags = [ "--with-xkb-config-root=${xorg.xkeyboardconfig}/share/X11/xkb" ];
meta = attrs.meta // {
-1
View File
@@ -7,7 +7,6 @@ mirror://xorg/individual/app/setxkbmap-1.3.4.tar.xz
mirror://xorg/individual/app/xclock-1.1.1.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/xeyes-1.3.0.tar.xz
mirror://xorg/individual/app/xfd-1.1.4.tar.xz
mirror://xorg/individual/app/xfs-1.2.2.tar.xz
mirror://xorg/individual/app/xinit-1.4.4.tar.xz