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

relevant changes:
- switch to GitLab source instead of release tarball
This commit is contained in:
quantenzitrone
2026-01-10 20:31:57 +01:00
parent a99e7fd499
commit ca471fb815
4 changed files with 61 additions and 41 deletions
@@ -0,0 +1,57 @@
{
lib,
stdenv,
fetchFromGitLab,
autoreconfHook,
pkg-config,
util-macros,
xorg-server,
xorgproto,
libpciaccess,
libdrm,
nix-update-script,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "xf86-video-savage";
version = "2.4.1";
src = fetchFromGitLab {
domain = "gitlab.freedesktop.org";
group = "xorg";
owner = "driver";
repo = "xf86-video-savage";
tag = "xf86-video-savage-${finalAttrs.version}";
hash = "sha256-MimTtOPSVQ0uEREYNJDqwDOF2RaNxv/pWmhxcqVfSqA=";
};
strictDeps = true;
nativeBuildInputs = [
autoreconfHook
pkg-config
util-macros
xorg-server # for some autoconf macros
];
buildInputs = [
xorg-server
xorgproto
libdrm
libpciaccess
];
passthru = {
updateScript = nix-update-script { extraArgs = [ "--version-regex=xf86-video-savage-(.*)" ]; };
};
meta = {
description = "S3 Savage video driver for the Xorg X server";
homepage = "https://gitlab.freedesktop.org/xorg/driver/xf86-video-savage";
license = with lib.licenses; [
x11
mit
];
maintainers = [ ];
platforms = lib.platforms.unix;
};
})
+2 -40
View File
@@ -157,6 +157,7 @@
xf86-video-qxl,
xf86-video-r128,
xf86-video-s3virge,
xf86-video-savage,
xf86-video-sis,
xf86-video-sisusb,
xf86-video-suncg6,
@@ -409,6 +410,7 @@ self: with self; {
xf86videoqxl = xf86-video-qxl;
xf86videor128 = xf86-video-r128;
xf86videos3virge = xf86-video-s3virge;
xf86videosavage = xf86-video-savage;
xf86videosis = xf86-video-sis;
xf86videosisusb = xf86-video-sisusb;
xf86videosuncg6 = xf86-video-suncg6;
@@ -472,46 +474,6 @@ self: with self; {
})
) { };
# THIS IS A GENERATED FILE. DO NOT EDIT!
xf86videosavage = callPackage (
{
stdenv,
pkg-config,
fetchurl,
xorgproto,
libdrm,
libpciaccess,
xorgserver,
testers,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "xf86-video-savage";
version = "2.4.1";
builder = ./builder.sh;
src = fetchurl {
url = "mirror://xorg/individual/driver/xf86-video-savage-2.4.1.tar.xz";
sha256 = "1bqhgldb6yahpgav7g7cyc4kl5pm3mgkq8w2qncj36311hb92hb7";
};
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!
xf86videosiliconmotion = callPackage (
{
@@ -489,6 +489,7 @@ print OUT <<EOF;
xf86-video-qxl,
xf86-video-r128,
xf86-video-s3virge,
xf86-video-savage,
xf86-video-sis,
xf86-video-sisusb,
xf86-video-suncg6,
@@ -741,6 +742,7 @@ self: with self; {
xf86videoqxl = xf86-video-qxl;
xf86videor128 = xf86-video-r128;
xf86videos3virge = xf86-video-s3virge;
xf86videosavage = xf86-video-savage;
xf86videosis = xf86-video-sis;
xf86videosisusb = xf86-video-sisusb;
xf86videosuncg6 = xf86-video-suncg6;
-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-savage-2.4.1.tar.xz
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