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

relevant changes:
- switch to GitLab source instead of release tarball
This commit is contained in:
quantenzitrone
2026-01-10 11:33:39 +01:00
parent 5970cad385
commit a54c58d545
5 changed files with 59 additions and 43 deletions
@@ -0,0 +1,55 @@
{
lib,
stdenv,
fetchFromGitLab,
autoreconfHook,
pkg-config,
util-macros,
xorg-server,
xorgproto,
nix-update-script,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "xf86-video-suncg6";
version = "1.1.3";
src = fetchFromGitLab {
domain = "gitlab.freedesktop.org";
group = "xorg";
owner = "driver";
repo = "xf86-video-suncg6";
tag = "xf86-video-suncg6-${finalAttrs.version}";
hash = "sha256-M9O0BNrKAFdiEgpZstH8KHRVIMEy5dI3y8rP+MSzLCY=";
};
strictDeps = true;
nativeBuildInputs = [
autoreconfHook
pkg-config
util-macros
xorg-server # for some autoconf macros
];
buildInputs = [
xorg-server
xorgproto
];
passthru = {
updateScript = nix-update-script { extraArgs = [ "--version-regex=xf86-video-suncg6-(.*)" ]; };
};
meta = {
description = "Sun GX/Turbo GX video driver for the Xorg X server";
longDescription = ''
This driver supports the Sun GX, GXplus, TurboGX, and TurboGXplus Color Frame Buffers. These
Sbus cards were supported in the sun4c, sun4m, sun4d, and sun4u platforms.
'';
homepage = "https://gitlab.freedesktop.org/xorg/driver/xf86-video-suncg6";
license = lib.licenses.hpndSellVariant;
maintainers = [ ];
platforms = lib.platforms.unix;
broken = stdenv.hostPlatform.isDarwin; # never worked: https://hydra.nixos.org/job/nixpkgs/trunk/xorg.xf86videosuncg6.x86_64-darwin
};
})
+2 -36
View File
@@ -138,6 +138,7 @@
xf86-video-s3virge,
xf86-video-sis,
xf86-video-sisusb,
xf86-video-suncg6,
xf86-video-v4l,
xfd,
xfontsel,
@@ -355,6 +356,7 @@ self: with self; {
xf86videos3virge = xf86-video-s3virge;
xf86videosis = xf86-video-sis;
xf86videosisusb = xf86-video-sisusb;
xf86videosuncg6 = xf86-video-suncg6;
xf86videov4l = xf86-video-v4l;
xkeyboardconfig = xkeyboard-config;
xorgcffiles = xorg-cf-files;
@@ -1378,42 +1380,6 @@ self: with self; {
})
) { };
# THIS IS A GENERATED FILE. DO NOT EDIT!
xf86videosuncg6 = callPackage (
{
stdenv,
pkg-config,
fetchurl,
xorgproto,
xorgserver,
testers,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "xf86-video-suncg6";
version = "1.1.3";
builder = ./builder.sh;
src = fetchurl {
url = "mirror://xorg/individual/driver/xf86-video-suncg6-1.1.3.tar.xz";
sha256 = "16c3g5m0f5y9nx2x6w9jdzbs9yr6xhq31j37dcffxbsskmfxq57w";
};
hardeningDisable = [
"bindnow"
"relro"
];
strictDeps = true;
nativeBuildInputs = [ pkg-config ];
buildInputs = [
xorgproto
xorgserver
];
passthru.tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage;
meta = {
pkgConfigModules = [ ];
platforms = lib.platforms.unix;
};
})
) { };
# THIS IS A GENERATED FILE. DO NOT EDIT!
xf86videosunffb = callPackage (
{
@@ -470,6 +470,7 @@ print OUT <<EOF;
xf86-video-s3virge,
xf86-video-sis,
xf86-video-sisusb,
xf86-video-suncg6,
xf86-video-v4l,
xfd,
xfontsel,
@@ -687,6 +688,7 @@ self: with self; {
xf86videos3virge = xf86-video-s3virge;
xf86videosis = xf86-video-sis;
xf86videosisusb = xf86-video-sisusb;
xf86videosuncg6 = xf86-video-suncg6;
xf86videov4l = xf86-video-v4l;
xkeyboardconfig = xkeyboard-config;
xorgcffiles = xorg-cf-files;
-6
View File
@@ -134,12 +134,6 @@ self: super:
configureFlags = [ "--with-xorg-conf-dir=$(out)/share/X11/xorg.conf.d" ];
});
xf86videosuncg6 = super.xf86videosuncg6.overrideAttrs (attrs: {
meta = attrs.meta // {
broken = isDarwin;
}; # never worked: https://hydra.nixos.org/job/nixpkgs/trunk/xorg.xf86videosuncg6.x86_64-darwin
});
xf86videosunffb = super.xf86videosunffb.overrideAttrs (attrs: {
meta = attrs.meta // {
broken = isDarwin;
-1
View File
@@ -27,7 +27,6 @@ mirror://xorg/individual/driver/xf86-video-qxl-0.1.6.tar.xz
mirror://xorg/individual/driver/xf86-video-r128-6.13.0.tar.xz
mirror://xorg/individual/driver/xf86-video-savage-2.4.1.tar.xz
mirror://xorg/individual/driver/xf86-video-siliconmotion-1.7.10.tar.xz
mirror://xorg/individual/driver/xf86-video-suncg6-1.1.3.tar.xz
mirror://xorg/individual/driver/xf86-video-sunffb-1.2.3.tar.xz
mirror://xorg/individual/driver/xf86-video-sunleo-1.2.3.tar.xz
mirror://xorg/individual/driver/xf86-video-tdfx-1.5.0.tar.bz2