xf86-video-ati: refactor, move to pkgs/by-name & rename from xorg.xf86videoati
relevant changes: - switch to GitLab source instead of release tarball - mark broken on aarch64 (missing I/O port functions https://stackoverflow.com/a/70538833)
This commit is contained in:
@@ -0,0 +1,65 @@
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
fetchFromGitLab,
|
||||
autoreconfHook,
|
||||
pkg-config,
|
||||
util-macros,
|
||||
xorg-server,
|
||||
xorgproto,
|
||||
libdrm,
|
||||
libgbm,
|
||||
libGL,
|
||||
libpciaccess,
|
||||
udev,
|
||||
nix-update-script,
|
||||
}:
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "xf86-video-ati";
|
||||
version = "22.0.0";
|
||||
|
||||
src = fetchFromGitLab {
|
||||
domain = "gitlab.freedesktop.org";
|
||||
group = "xorg";
|
||||
owner = "driver";
|
||||
repo = "xf86-video-ati";
|
||||
tag = "xf86-video-ati-${finalAttrs.version}";
|
||||
hash = "sha256-q8+lMYS9tfO64xT7t6PYIqsARX8Dv/8uMTMeP1JCt08=";
|
||||
};
|
||||
|
||||
strictDeps = true;
|
||||
|
||||
nativeBuildInputs = [
|
||||
autoreconfHook
|
||||
pkg-config
|
||||
util-macros
|
||||
xorg-server # for some autoconf macros
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
xorg-server
|
||||
xorgproto
|
||||
libdrm
|
||||
libgbm
|
||||
libGL
|
||||
libpciaccess
|
||||
udev
|
||||
];
|
||||
|
||||
passthru = {
|
||||
updateScript = nix-update-script { extraArgs = [ "--version-regex=xf86-video-ati-(.*)" ]; };
|
||||
};
|
||||
|
||||
meta = {
|
||||
description = "ATI/AMD Radeon video driver for the Xorg X server";
|
||||
homepage = "https://gitlab.freedesktop.org/xorg/driver/xf86-video-ati";
|
||||
license = with lib.licenses; [
|
||||
mit
|
||||
x11
|
||||
hpndSellVariant
|
||||
];
|
||||
maintainers = [ ];
|
||||
platforms = lib.platforms.unix;
|
||||
broken = stdenv.hostPlatform.isAarch64;
|
||||
};
|
||||
})
|
||||
@@ -135,6 +135,7 @@
|
||||
xf86-video-apm,
|
||||
xf86-video-ark,
|
||||
xf86-video-ast,
|
||||
xf86-video-ati,
|
||||
xf86-video-geode,
|
||||
xf86-video-nouveau,
|
||||
xf86-video-s3virge,
|
||||
@@ -352,6 +353,7 @@ self: with self; {
|
||||
xf86videoapm = xf86-video-apm;
|
||||
xf86videoark = xf86-video-ark;
|
||||
xf86videoast = xf86-video-ast;
|
||||
xf86videoati = xf86-video-ati;
|
||||
xf86videogeode = xf86-video-geode;
|
||||
xf86videonouveau = xf86-video-nouveau;
|
||||
xf86videos3virge = xf86-video-s3virge;
|
||||
@@ -598,52 +600,6 @@ self: with self; {
|
||||
})
|
||||
) { };
|
||||
|
||||
# THIS IS A GENERATED FILE. DO NOT EDIT!
|
||||
xf86videoati = callPackage (
|
||||
{
|
||||
stdenv,
|
||||
pkg-config,
|
||||
fetchurl,
|
||||
xorgproto,
|
||||
libgbm,
|
||||
libGL,
|
||||
libdrm,
|
||||
udev,
|
||||
libpciaccess,
|
||||
xorgserver,
|
||||
testers,
|
||||
}:
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "xf86-video-ati";
|
||||
version = "22.0.0";
|
||||
builder = ./builder.sh;
|
||||
src = fetchurl {
|
||||
url = "mirror://xorg/individual/driver/xf86-video-ati-22.0.0.tar.xz";
|
||||
sha256 = "0vdznwx78alhbb05paw2xd65hcsila2kqflwwnbpq8pnsdbbpj68";
|
||||
};
|
||||
hardeningDisable = [
|
||||
"bindnow"
|
||||
"relro"
|
||||
];
|
||||
strictDeps = true;
|
||||
nativeBuildInputs = [ pkg-config ];
|
||||
buildInputs = [
|
||||
xorgproto
|
||||
libgbm
|
||||
libGL
|
||||
libdrm
|
||||
udev
|
||||
libpciaccess
|
||||
xorgserver
|
||||
];
|
||||
passthru.tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage;
|
||||
meta = {
|
||||
pkgConfigModules = [ ];
|
||||
platforms = lib.platforms.unix;
|
||||
};
|
||||
})
|
||||
) { };
|
||||
|
||||
# THIS IS A GENERATED FILE. DO NOT EDIT!
|
||||
xf86videochips = callPackage (
|
||||
{
|
||||
|
||||
@@ -467,6 +467,7 @@ print OUT <<EOF;
|
||||
xf86-video-apm,
|
||||
xf86-video-ark,
|
||||
xf86-video-ast,
|
||||
xf86-video-ati,
|
||||
xf86-video-geode,
|
||||
xf86-video-nouveau,
|
||||
xf86-video-s3virge,
|
||||
@@ -684,6 +685,7 @@ self: with self; {
|
||||
xf86videoapm = xf86-video-apm;
|
||||
xf86videoark = xf86-video-ark;
|
||||
xf86videoast = xf86-video-ast;
|
||||
xf86videoati = xf86-video-ati;
|
||||
xf86videogeode = xf86-video-geode;
|
||||
xf86videonouveau = xf86-video-nouveau;
|
||||
xf86videos3virge = xf86-video-s3virge;
|
||||
|
||||
@@ -8,7 +8,6 @@ mirror://xorg/individual/driver/xf86-input-joystick-1.6.4.tar.xz
|
||||
mirror://xorg/individual/driver/xf86-input-keyboard-2.1.0.tar.xz
|
||||
mirror://xorg/individual/driver/xf86-input-libinput-1.5.0.tar.xz
|
||||
mirror://xorg/individual/driver/xf86-video-amdgpu-23.0.0.tar.xz
|
||||
mirror://xorg/individual/driver/xf86-video-ati-22.0.0.tar.xz
|
||||
mirror://xorg/individual/driver/xf86-video-chips-1.5.0.tar.xz
|
||||
mirror://xorg/individual/driver/xf86-video-cirrus-1.6.0.tar.xz
|
||||
mirror://xorg/individual/driver/xf86-video-dummy-0.4.1.tar.xz
|
||||
|
||||
Reference in New Issue
Block a user