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

relevant changes:
- switch to GitLab source instead of release tarball
This commit is contained in:
quantenzitrone
2026-01-10 20:31:59 +01:00
parent ca471fb815
commit 5d294019c8
5 changed files with 60 additions and 48 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-siliconmotion";
version = "1.7.10";
src = fetchFromGitLab {
domain = "gitlab.freedesktop.org";
group = "xorg";
owner = "driver";
repo = "xf86-video-siliconmotion";
tag = "xf86-video-siliconmotion-${finalAttrs.version}";
hash = "sha256-CRuzdxlES6TFMDGIKk5sBAXF2Pa781jmTzlVT+A2Muk=";
};
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-siliconmotion-(.*)" ];
};
meta = {
description = "Silicon Motion video driver for the Xorg X server";
homepage = "https://gitlab.freedesktop.org/xorg/driver/xf86-video-siliconmotion";
license = with lib.licenses; [
x11
mit
];
maintainers = [ ];
platforms = lib.platforms.unix;
broken = stdenv.hostPlatform.isAarch64;
};
})
+2 -38
View File
@@ -158,6 +158,7 @@
xf86-video-r128,
xf86-video-s3virge,
xf86-video-savage,
xf86-video-siliconmotion,
xf86-video-sis,
xf86-video-sisusb,
xf86-video-suncg6,
@@ -411,6 +412,7 @@ self: with self; {
xf86videor128 = xf86-video-r128;
xf86videos3virge = xf86-video-s3virge;
xf86videosavage = xf86-video-savage;
xf86videosiliconmotion = xf86-video-siliconmotion;
xf86videosis = xf86-video-sis;
xf86videosisusb = xf86-video-sisusb;
xf86videosuncg6 = xf86-video-suncg6;
@@ -474,44 +476,6 @@ self: with self; {
})
) { };
# THIS IS A GENERATED FILE. DO NOT EDIT!
xf86videosiliconmotion = callPackage (
{
stdenv,
pkg-config,
fetchurl,
xorgproto,
libpciaccess,
xorgserver,
testers,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "xf86-video-siliconmotion";
version = "1.7.10";
builder = ./builder.sh;
src = fetchurl {
url = "mirror://xorg/individual/driver/xf86-video-siliconmotion-1.7.10.tar.xz";
sha256 = "1h4g2mqxshaxii416ldw0aqy6cxnsbnzayfin51xm2526dw9q18n";
};
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!
xf86videotrident = callPackage (
{
@@ -490,6 +490,7 @@ print OUT <<EOF;
xf86-video-r128,
xf86-video-s3virge,
xf86-video-savage,
xf86-video-siliconmotion,
xf86-video-sis,
xf86-video-sisusb,
xf86-video-suncg6,
@@ -743,6 +744,7 @@ self: with self; {
xf86videor128 = xf86-video-r128;
xf86videos3virge = xf86-video-s3virge;
xf86videosavage = xf86-video-savage;
xf86videosiliconmotion = xf86-video-siliconmotion;
xf86videosis = xf86-video-sis;
xf86videosisusb = xf86-video-sisusb;
xf86videosuncg6 = xf86-video-suncg6;
-9
View File
@@ -69,15 +69,6 @@ self: super:
};
});
xf86videosiliconmotion = super.xf86videosiliconmotion.overrideAttrs (attrs: {
meta = attrs.meta // {
platforms = [
"i686-linux"
"x86_64-linux"
];
};
});
# xkeyboardconfig variant extensible with custom layouts.
# See nixos/modules/services/x11/extra-layouts.nix
xkeyboardconfig_custom =
-1
View File
@@ -1,5 +1,4 @@
mirror://xorg/individual/driver/xf86-video-openchrome-0.6.0.tar.bz2
mirror://xorg/individual/driver/xf86-video-siliconmotion-1.7.10.tar.xz
mirror://xorg/individual/driver/xf86-video-trident-1.4.0.tar.xz
mirror://xorg/individual/driver/xf86-video-vmware-13.4.0.tar.xz
mirror://xorg/individual/driver/xf86-video-voodoo-1.2.6.tar.xz