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

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:
quantenzitrone
2026-01-10 11:32:38 +01:00
parent 884ead7d8c
commit fcc6ba9522
4 changed files with 60 additions and 39 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-apm";
version = "1.3.0";
src = fetchFromGitLab {
domain = "gitlab.freedesktop.org";
group = "xorg";
owner = "driver";
repo = "xf86-video-apm";
tag = "xf86-video-apm-${finalAttrs.version}";
hash = "sha256-Q10YmtxgWiFvMqvS0RKBhWPVqyFoWNjTe1RLvt7Kxlg=";
};
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-apm-(.*)" ]; };
};
meta = {
description = "Alliance Promotion video driver for the Xorg X server";
homepage = "https://gitlab.freedesktop.org/xorg/driver/xf86-video-apm";
license = with lib.licenses; [
x11
mit
];
maintainers = [ ];
platforms = lib.platforms.unix;
broken = stdenv.hostPlatform.isAarch64;
};
})
+2 -38
View File
@@ -132,6 +132,7 @@
xf86-input-synaptics,
xf86-input-vmmouse,
xf86-input-void,
xf86-video-apm,
xf86-video-ark,
xf86-video-geode,
xf86-video-nouveau,
@@ -347,6 +348,7 @@ self: with self; {
xf86inputsynaptics = xf86-input-synaptics;
xf86inputvmmouse = xf86-input-vmmouse;
xf86inputvoid = xf86-input-void;
xf86videoapm = xf86-video-apm;
xf86videoark = xf86-video-ark;
xf86videogeode = xf86-video-geode;
xf86videonouveau = xf86-video-nouveau;
@@ -594,44 +596,6 @@ self: with self; {
})
) { };
# THIS IS A GENERATED FILE. DO NOT EDIT!
xf86videoapm = callPackage (
{
stdenv,
pkg-config,
fetchurl,
xorgproto,
libpciaccess,
xorgserver,
testers,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "xf86-video-apm";
version = "1.3.0";
builder = ./builder.sh;
src = fetchurl {
url = "mirror://xorg/individual/driver/xf86-video-apm-1.3.0.tar.bz2";
sha256 = "0znwqfc8abkiha98an8hxsngnz96z6cd976bc4bsvz1km6wqk0c0";
};
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!
xf86videoast = callPackage (
{
@@ -464,6 +464,7 @@ print OUT <<EOF;
xf86-input-synaptics,
xf86-input-vmmouse,
xf86-input-void,
xf86-video-apm,
xf86-video-ark,
xf86-video-geode,
xf86-video-nouveau,
@@ -679,6 +680,7 @@ self: with self; {
xf86inputsynaptics = xf86-input-synaptics;
xf86inputvmmouse = xf86-input-vmmouse;
xf86inputvoid = xf86-input-void;
xf86videoapm = xf86-video-apm;
xf86videoark = xf86-video-ark;
xf86videogeode = xf86-video-geode;
xf86videonouveau = xf86-video-nouveau;
-1
View File
@@ -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-apm-1.3.0.tar.bz2
mirror://xorg/individual/driver/xf86-video-ast-1.2.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