xf86-video-chips: refactor, move to pkgs/by-name & rename from xorg.xf86videochips

relevant changes:
- switch to GitLab source instead of release tarball
- mark broken on aarch64 (missing I/O port functions https://stackoverflow.com/a/70538833)
This commit is contained in:
quantenzitrone
2026-01-10 11:32:41 +01:00
parent b18da9f8fa
commit 64508ba254
4 changed files with 63 additions and 39 deletions
@@ -0,0 +1,59 @@
{
lib,
stdenv,
fetchFromGitLab,
autoreconfHook,
pkg-config,
util-macros,
xorg-server,
xorgproto,
libpciaccess,
nix-update-script,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "xf86-video-chips";
version = "1.5.0";
src = fetchFromGitLab {
domain = "gitlab.freedesktop.org";
group = "xorg";
owner = "driver";
repo = "xf86-video-chips";
tag = "xf86-video-chips-${finalAttrs.version}";
hash = "sha256-MQ6aT+fWKFtpdzV40LzMrr046h0ZRmHi2sgWjuYUMq8=";
};
strictDeps = true;
nativeBuildInputs = [
autoreconfHook
pkg-config
util-macros
xorg-server # for some autoconf macros
];
buildInputs = [
xorgproto
libpciaccess
xorg-server
];
passthru = {
updateScript = nix-update-script { extraArgs = [ "--version-regex=xf86-video-chips-(.*)" ]; };
};
meta = {
description = "Chips & Technologies video driver for the Xorg X server";
homepage = "https://gitlab.freedesktop.org/xorg/driver/xf86-video-chips";
license = with lib.licenses; [
hpndSellVariant
bsd3
dec3Clause
mit
x11
];
maintainers = [ ];
platforms = lib.platforms.unix;
broken = stdenv.hostPlatform.isAarch64;
};
})
+2 -38
View File
@@ -136,6 +136,7 @@
xf86-video-ark,
xf86-video-ast,
xf86-video-ati,
xf86-video-chips,
xf86-video-geode,
xf86-video-nouveau,
xf86-video-s3virge,
@@ -354,6 +355,7 @@ self: with self; {
xf86videoark = xf86-video-ark;
xf86videoast = xf86-video-ast;
xf86videoati = xf86-video-ati;
xf86videochips = xf86-video-chips;
xf86videogeode = xf86-video-geode;
xf86videonouveau = xf86-video-nouveau;
xf86videos3virge = xf86-video-s3virge;
@@ -600,44 +602,6 @@ self: with self; {
})
) { };
# THIS IS A GENERATED FILE. DO NOT EDIT!
xf86videochips = callPackage (
{
stdenv,
pkg-config,
fetchurl,
xorgproto,
libpciaccess,
xorgserver,
testers,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "xf86-video-chips";
version = "1.5.0";
builder = ./builder.sh;
src = fetchurl {
url = "mirror://xorg/individual/driver/xf86-video-chips-1.5.0.tar.xz";
sha256 = "1cyljd3h2hjv42ldqimf4lllqhb8cma6p3n979kr8nn81rjdkhw4";
};
hardeningDisable = [
"bindnow"
"relro"
];
strictDeps = true;
nativeBuildInputs = [ pkg-config ];
buildInputs = [
xorgproto
libpciaccess
xorgserver
];
passthru.tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage;
meta = {
pkgConfigModules = [ ];
platforms = lib.platforms.unix;
};
})
) { };
# THIS IS A GENERATED FILE. DO NOT EDIT!
xf86videocirrus = callPackage (
{
@@ -468,6 +468,7 @@ print OUT <<EOF;
xf86-video-ark,
xf86-video-ast,
xf86-video-ati,
xf86-video-chips,
xf86-video-geode,
xf86-video-nouveau,
xf86-video-s3virge,
@@ -686,6 +687,7 @@ self: with self; {
xf86videoark = xf86-video-ark;
xf86videoast = xf86-video-ast;
xf86videoati = xf86-video-ati;
xf86videochips = xf86-video-chips;
xf86videogeode = xf86-video-geode;
xf86videonouveau = xf86-video-nouveau;
xf86videos3virge = xf86-video-s3virge;
-1
View File
@@ -8,7 +8,6 @@ mirror://xorg/individual/driver/xf86-input-joystick-1.6.4.tar.xz
mirror://xorg/individual/driver/xf86-input-keyboard-2.1.0.tar.xz
mirror://xorg/individual/driver/xf86-input-libinput-1.5.0.tar.xz
mirror://xorg/individual/driver/xf86-video-amdgpu-23.0.0.tar.xz
mirror://xorg/individual/driver/xf86-video-chips-1.5.0.tar.xz
mirror://xorg/individual/driver/xf86-video-cirrus-1.6.0.tar.xz
mirror://xorg/individual/driver/xf86-video-dummy-0.4.1.tar.xz
mirror://xorg/individual/driver/xf86-video-fbdev-0.5.1.tar.xz