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

relevant changes:
- switch to GitLab source instead of release tarball
This commit is contained in:
quantenzitrone
2026-01-10 20:32:01 +01:00
parent 6f460393b3
commit 4624f7e71d
5 changed files with 73 additions and 39 deletions
+12
View File
@@ -742,6 +742,18 @@ lib.mapAttrs mkLicense (
fullName = "Historical Permission Notice and Disclaimer - sell xserver variant with MIT disclaimer";
};
hpndSellVariantSafetyClause = {
fullName = "HPND - sell variant with safety critical systems clause";
url = "https://gitlab.freedesktop.org/xorg/driver/xf86-video-voodoo/-/blob/68a5b6d98ae34749cca889f4373b4043d00bfe6a/src/voodoo_dga.c#L12-33";
# TODO: if the license gets accepted to spdx then
# add spdxId
# else
# remove license
# && replace reference with whatever this license is supposed to be then
# https://github.com/spdx/license-list-XML/issues/2922
# spdxId = "HPND-sell-variant-safety-clause";
};
hpndDec = {
fullName = "Historical Permission Notice and Disclaimer - DEC variant";
spdxId = "HPND-DEC";
@@ -0,0 +1,57 @@
{
lib,
stdenv,
fetchFromGitLab,
autoreconfHook,
pkg-config,
util-macros,
xorg-server,
xorgproto,
libpciaccess,
nix-update-script,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "xf86-video-voodoo";
version = "1.2.6";
src = fetchFromGitLab {
domain = "gitlab.freedesktop.org";
group = "xorg";
owner = "driver";
repo = "xf86-video-voodoo";
tag = "xf86-video-voodoo-${finalAttrs.version}";
hash = "sha256-OuKGgrdGIIUF6CHD1BwO7ZQgvcbhGHQETExv+Ra0X2E=";
};
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-voodoo-(.*)" ];
};
meta = {
description = "Voodoo video driver for the Xorg X server";
homepage = "https://gitlab.freedesktop.org/xorg/driver/xf86-video-voodoo";
license = with lib.licenses; [
# "Relicensed from GPL to the X license by consent of the author"
x11
hpndSellVariantSafetyClause
mit
];
maintainers = [ ];
platforms = lib.platforms.unix;
};
})
+2 -38
View File
@@ -170,6 +170,7 @@
xf86-video-vbox,
xf86-video-vesa,
xf86-video-vmware,
xf86-video-voodoo,
xfd,
xfontsel,
xfs,
@@ -426,6 +427,7 @@ self: with self; {
xf86videovboxvideo = xf86-video-vbox;
xf86videovesa = xf86-video-vesa;
xf86videovmware = xf86-video-vmware;
xf86videovoodoo = xf86-video-voodoo;
xkeyboardconfig = xkeyboard-config;
xorgcffiles = xorg-cf-files;
xorgdocs = xorg-docs;
@@ -480,42 +482,4 @@ self: with self; {
})
) { };
# THIS IS A GENERATED FILE. DO NOT EDIT!
xf86videovoodoo = callPackage (
{
stdenv,
pkg-config,
fetchurl,
xorgproto,
libpciaccess,
xorgserver,
testers,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "xf86-video-voodoo";
version = "1.2.6";
builder = ./builder.sh;
src = fetchurl {
url = "mirror://xorg/individual/driver/xf86-video-voodoo-1.2.6.tar.xz";
sha256 = "00pn5826aazsdipf7ny03s1lypzid31fmswl8y2hrgf07bq76ab2";
};
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;
};
})
) { };
}
@@ -502,6 +502,7 @@ print OUT <<EOF;
xf86-video-vbox,
xf86-video-vesa,
xf86-video-vmware,
xf86-video-voodoo,
xfd,
xfontsel,
xfs,
@@ -758,6 +759,7 @@ self: with self; {
xf86videovboxvideo = xf86-video-vbox;
xf86videovesa = xf86-video-vesa;
xf86videovmware = xf86-video-vmware;
xf86videovoodoo = xf86-video-voodoo;
xkeyboardconfig = xkeyboard-config;
xorgcffiles = xorg-cf-files;
xorgdocs = xorg-docs;
-1
View File
@@ -1,2 +1 @@
mirror://xorg/individual/driver/xf86-video-openchrome-0.6.0.tar.bz2
mirror://xorg/individual/driver/xf86-video-voodoo-1.2.6.tar.xz