xf86-video-trident: refactor, move to pkgs/by-name & rename from xorg.xf86videotrident
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,56 @@
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
fetchFromGitLab,
|
||||
autoreconfHook,
|
||||
pkg-config,
|
||||
util-macros,
|
||||
xorg-server,
|
||||
xorgproto,
|
||||
libpciaccess,
|
||||
nix-update-script,
|
||||
}:
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "xf86-video-trident";
|
||||
version = "1.4.0";
|
||||
|
||||
src = fetchFromGitLab {
|
||||
domain = "gitlab.freedesktop.org";
|
||||
group = "xorg";
|
||||
owner = "driver";
|
||||
repo = "xf86-video-trident";
|
||||
tag = "xf86-video-trident-${finalAttrs.version}";
|
||||
hash = "sha256-xTBktn813s8Dy3gPScEHVlWMzSRx7oIymbFUpkvYAhE=";
|
||||
};
|
||||
|
||||
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-trident-(.*)" ];
|
||||
};
|
||||
|
||||
meta = {
|
||||
description = "Trident video driver for the Xorg X server";
|
||||
homepage = "https://gitlab.freedesktop.org/xorg/driver/xf86-video-trident";
|
||||
license = with lib.licenses; [
|
||||
hpndSellVariant
|
||||
mit
|
||||
];
|
||||
maintainers = [ ];
|
||||
platforms = lib.platforms.unix;
|
||||
badPlatforms = lib.platforms.aarch64;
|
||||
};
|
||||
})
|
||||
@@ -165,6 +165,7 @@
|
||||
xf86-video-sunffb,
|
||||
xf86-video-sunleo,
|
||||
xf86-video-tdfx,
|
||||
xf86-video-trident,
|
||||
xf86-video-v4l,
|
||||
xf86-video-vbox,
|
||||
xf86-video-vesa,
|
||||
@@ -419,6 +420,7 @@ self: with self; {
|
||||
xf86videosunffb = xf86-video-sunffb;
|
||||
xf86videosunleo = xf86-video-sunleo;
|
||||
xf86videotdfx = xf86-video-tdfx;
|
||||
xf86videotrident = xf86-video-trident;
|
||||
xf86videov4l = xf86-video-v4l;
|
||||
xf86videovboxvideo = xf86-video-vbox;
|
||||
xf86videovesa = xf86-video-vesa;
|
||||
@@ -476,44 +478,6 @@ self: with self; {
|
||||
})
|
||||
) { };
|
||||
|
||||
# THIS IS A GENERATED FILE. DO NOT EDIT!
|
||||
xf86videotrident = callPackage (
|
||||
{
|
||||
stdenv,
|
||||
pkg-config,
|
||||
fetchurl,
|
||||
xorgproto,
|
||||
libpciaccess,
|
||||
xorgserver,
|
||||
testers,
|
||||
}:
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "xf86-video-trident";
|
||||
version = "1.4.0";
|
||||
builder = ./builder.sh;
|
||||
src = fetchurl {
|
||||
url = "mirror://xorg/individual/driver/xf86-video-trident-1.4.0.tar.xz";
|
||||
sha256 = "16qqn1brz50mwcy42zi1wsw9af56qadsaaiwm9hn1p6plyf22xkz";
|
||||
};
|
||||
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!
|
||||
xf86videovmware = callPackage (
|
||||
{
|
||||
|
||||
@@ -497,6 +497,7 @@ print OUT <<EOF;
|
||||
xf86-video-sunffb,
|
||||
xf86-video-sunleo,
|
||||
xf86-video-tdfx,
|
||||
xf86-video-trident,
|
||||
xf86-video-v4l,
|
||||
xf86-video-vbox,
|
||||
xf86-video-vesa,
|
||||
@@ -751,6 +752,7 @@ self: with self; {
|
||||
xf86videosunffb = xf86-video-sunffb;
|
||||
xf86videosunleo = xf86-video-sunleo;
|
||||
xf86videotdfx = xf86-video-tdfx;
|
||||
xf86videotrident = xf86-video-trident;
|
||||
xf86videov4l = xf86-video-v4l;
|
||||
xf86videovboxvideo = xf86-video-vbox;
|
||||
xf86videovesa = xf86-video-vesa;
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
mirror://xorg/individual/driver/xf86-video-openchrome-0.6.0.tar.bz2
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user