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

relevant changes:
- switch to GitLab source instead of release tarball
This commit is contained in:
quantenzitrone
2026-01-10 11:33:02 +01:00
parent da14298fdc
commit 2aa1686813
4 changed files with 63 additions and 41 deletions
@@ -0,0 +1,59 @@
{
lib,
stdenv,
fetchFromGitLab,
autoreconfHook,
pkg-config,
util-macros,
xorg-server,
xorgproto,
libdrm,
libpciaccess,
nix-update-script,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "xf86-video-mga";
version = "2.1.0";
src = fetchFromGitLab {
domain = "gitlab.freedesktop.org";
group = "xorg";
owner = "driver";
repo = "xf86-video-mga";
tag = "xf86-video-mga-${finalAttrs.version}";
hash = "sha256-9DpqSyGTu4jOttZlF95/rpi2oEu+JPU3sniuHTatoRo=";
};
strictDeps = true;
nativeBuildInputs = [
autoreconfHook
pkg-config
util-macros
xorg-server # for some autoconf macros
];
buildInputs = [
xorgproto
libdrm
libpciaccess
xorg-server
];
passthru = {
updateScript = nix-update-script { extraArgs = [ "--version-regex=xf86-video-mga-(.*)" ]; };
};
meta = {
description = "Matrox video driver for the Xorg X server";
homepage = "https://gitlab.freedesktop.org/xorg/driver/xf86-video-mga";
license = with lib.licenses; [
x11
mitOpenGroup
hpndSellVariant
mit
];
maintainers = [ ];
platforms = lib.platforms.unix;
};
})
+2 -40
View File
@@ -136,6 +136,7 @@
xf86-video-geode,
xf86-video-i128,
xf86-video-i740,
xf86-video-mga,
xf86-video-nouveau,
xf86-video-s3virge,
xf86-video-v4l,
@@ -353,6 +354,7 @@ self: with self; {
xf86videogeode = xf86-video-geode;
xf86videoi128 = xf86-video-i128;
xf86videoi740 = xf86-video-i740;
xf86videomga = xf86-video-mga;
xf86videonouveau = xf86-video-nouveau;
xf86videos3virge = xf86-video-s3virge;
xf86videov4l = xf86-video-v4l;
@@ -940,46 +942,6 @@ self: with self; {
})
) { };
# THIS IS A GENERATED FILE. DO NOT EDIT!
xf86videomga = callPackage (
{
stdenv,
pkg-config,
fetchurl,
xorgproto,
libdrm,
libpciaccess,
xorgserver,
testers,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "xf86-video-mga";
version = "2.1.0";
builder = ./builder.sh;
src = fetchurl {
url = "mirror://xorg/individual/driver/xf86-video-mga-2.1.0.tar.xz";
sha256 = "0wxbcgg5i4yq22pbc50567877z8irxhqzgl3sk6vf5zs9szmvy3v";
};
hardeningDisable = [
"bindnow"
"relro"
];
strictDeps = true;
nativeBuildInputs = [ pkg-config ];
buildInputs = [
xorgproto
libdrm
libpciaccess
xorgserver
];
passthru.tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage;
meta = {
pkgConfigModules = [ ];
platforms = lib.platforms.unix;
};
})
) { };
# THIS IS A GENERATED FILE. DO NOT EDIT!
xf86videoneomagic = callPackage (
{
@@ -468,6 +468,7 @@ print OUT <<EOF;
xf86-video-geode,
xf86-video-i128,
xf86-video-i740,
xf86-video-mga,
xf86-video-nouveau,
xf86-video-s3virge,
xf86-video-v4l,
@@ -685,6 +686,7 @@ self: with self; {
xf86videogeode = xf86-video-geode;
xf86videoi128 = xf86-video-i128;
xf86videoi740 = xf86-video-i740;
xf86videomga = xf86-video-mga;
xf86videonouveau = xf86-video-nouveau;
xf86videos3virge = xf86-video-s3virge;
xf86videov4l = xf86-video-v4l;
-1
View File
@@ -16,7 +16,6 @@ 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-intel-2.99.917.tar.bz2
mirror://xorg/individual/driver/xf86-video-mga-2.1.0.tar.xz
mirror://xorg/individual/driver/xf86-video-neomagic-1.3.1.tar.xz
mirror://xorg/individual/driver/xf86-video-nv-2.1.23.tar.xz
mirror://xorg/individual/driver/xf86-video-omap-0.4.5.tar.bz2