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

relevant changes:
- switch to GitLab source instead of release tarball
This commit is contained in:
quantenzitrone
2026-01-10 11:33:00 +01:00
parent 884ead7d8c
commit 9c63aae1d2
5 changed files with 60 additions and 45 deletions
@@ -0,0 +1,56 @@
{
lib,
stdenv,
fetchFromGitLab,
autoreconfHook,
pkg-config,
util-macros,
xorg-server,
xorgproto,
libpciaccess,
nix-update-script,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "xf86-video-i128";
version = "1.4.1";
src = fetchFromGitLab {
domain = "gitlab.freedesktop.org";
group = "xorg";
owner = "driver";
repo = "xf86-video-i128";
tag = "xf86-video-i128-${finalAttrs.version}";
hash = "sha256-2yjzaJV5DIATEmByIZJXZyZ781lTUNzfafCmIlBSBRg=";
};
strictDeps = true;
nativeBuildInputs = [
autoreconfHook
pkg-config
util-macros
xorg-server # for some autoconf macros
];
buildInputs = [
xorg-server
xorgproto
libpciaccess
];
passthru = {
updateScript = nix-update-script { extraArgs = [ "--version-regex=xf86-video-i128-(.*)" ]; };
};
meta = {
description = "Number Nine I128 video driver for the Xorg X server";
homepage = "https://gitlab.freedesktop.org/xorg/driver/xf86-video-i128";
license = with lib.licenses; [
hpndSellVariant
mit
];
maintainers = [ ];
platforms = lib.platforms.unix;
broken = stdenv.hostPlatform.isAarch64;
};
})
+2 -38
View File
@@ -134,6 +134,7 @@
xf86-input-void,
xf86-video-ark,
xf86-video-geode,
xf86-video-i128,
xf86-video-nouveau,
xf86-video-s3virge,
xf86-video-v4l,
@@ -349,6 +350,7 @@ self: with self; {
xf86inputvoid = xf86-input-void;
xf86videoark = xf86-video-ark;
xf86videogeode = xf86-video-geode;
xf86videoi128 = xf86-video-i128;
xf86videonouveau = xf86-video-nouveau;
xf86videos3virge = xf86-video-s3virge;
xf86videov4l = xf86-video-v4l;
@@ -866,44 +868,6 @@ self: with self; {
})
) { };
# THIS IS A GENERATED FILE. DO NOT EDIT!
xf86videoi128 = callPackage (
{
stdenv,
pkg-config,
fetchurl,
xorgproto,
libpciaccess,
xorgserver,
testers,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "xf86-video-i128";
version = "1.4.1";
builder = ./builder.sh;
src = fetchurl {
url = "mirror://xorg/individual/driver/xf86-video-i128-1.4.1.tar.xz";
sha256 = "0imwmkam09wpp3z3iaw9i4hysxicrrax7i3p0l2glgp3zw9var3h";
};
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!
xf86videoi740 = callPackage (
{
@@ -466,6 +466,7 @@ print OUT <<EOF;
xf86-input-void,
xf86-video-ark,
xf86-video-geode,
xf86-video-i128,
xf86-video-nouveau,
xf86-video-s3virge,
xf86-video-v4l,
@@ -681,6 +682,7 @@ self: with self; {
xf86inputvoid = xf86-input-void;
xf86videoark = xf86-video-ark;
xf86videogeode = xf86-video-geode;
xf86videoi128 = xf86-video-i128;
xf86videonouveau = xf86-video-nouveau;
xf86videos3virge = xf86-video-s3virge;
xf86videov4l = xf86-video-v4l;
-6
View File
@@ -120,12 +120,6 @@ self: super:
xf86videodummy = brokenOnDarwin super.xf86videodummy; # never worked: https://hydra.nixos.org/job/nixpkgs/trunk/xorg.xf86videodummy.x86_64-darwin
xf86videoi128 = super.xf86videoi128.overrideAttrs (attrs: {
meta = attrs.meta // {
badPlatforms = lib.platforms.aarch64;
};
});
xf86videoomap = super.xf86videoomap.overrideAttrs (attrs: {
env.NIX_CFLAGS_COMPILE = toString [ "-Wno-error=format-overflow" ];
});
-1
View File
@@ -15,7 +15,6 @@ 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
mirror://xorg/individual/driver/xf86-video-i128-1.4.1.tar.xz
mirror://xorg/individual/driver/xf86-video-i740-1.4.0.tar.bz2
mirror://xorg/individual/driver/xf86-video-intel-2.99.917.tar.bz2
mirror://xorg/individual/driver/xf86-video-mga-2.1.0.tar.xz