xf86-video-sis: refactor, move to pkgs/by-name & rename from xorg.xf86videosis
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,59 @@
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
fetchFromGitLab,
|
||||
autoreconfHook,
|
||||
pkg-config,
|
||||
util-macros,
|
||||
xorg-server,
|
||||
xorgproto,
|
||||
libdrm,
|
||||
libpciaccess,
|
||||
nix-update-script,
|
||||
}:
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "xf86-video-sis";
|
||||
version = "0.12.0";
|
||||
|
||||
src = fetchFromGitLab {
|
||||
domain = "gitlab.freedesktop.org";
|
||||
group = "xorg";
|
||||
owner = "driver";
|
||||
repo = "xf86-video-sis";
|
||||
tag = "xf86-video-sis-${finalAttrs.version}";
|
||||
hash = "sha256-C9OG/vWFIVXgRRAzn3AqE2ApABZOKT94CuIxgnOapjs=";
|
||||
};
|
||||
|
||||
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-sis-(.*)" ]; };
|
||||
};
|
||||
|
||||
meta = {
|
||||
description = "SiS and XGI video driver for the Xorg X server";
|
||||
homepage = "https://gitlab.freedesktop.org/xorg/driver/xf86-video-sis";
|
||||
license = with lib.licenses; [
|
||||
bsd3
|
||||
hpndSellVariant
|
||||
mit
|
||||
];
|
||||
maintainers = [ ];
|
||||
platforms = lib.platforms.unix;
|
||||
broken = stdenv.hostPlatform.isAarch64;
|
||||
};
|
||||
})
|
||||
@@ -136,6 +136,7 @@
|
||||
xf86-video-geode,
|
||||
xf86-video-nouveau,
|
||||
xf86-video-s3virge,
|
||||
xf86-video-sis,
|
||||
xf86-video-v4l,
|
||||
xfd,
|
||||
xfontsel,
|
||||
@@ -351,6 +352,7 @@ self: with self; {
|
||||
xf86videogeode = xf86-video-geode;
|
||||
xf86videonouveau = xf86-video-nouveau;
|
||||
xf86videos3virge = xf86-video-s3virge;
|
||||
xf86videosis = xf86-video-sis;
|
||||
xf86videov4l = xf86-video-v4l;
|
||||
xkeyboardconfig = xkeyboard-config;
|
||||
xorgcffiles = xorg-cf-files;
|
||||
@@ -1374,46 +1376,6 @@ self: with self; {
|
||||
})
|
||||
) { };
|
||||
|
||||
# THIS IS A GENERATED FILE. DO NOT EDIT!
|
||||
xf86videosis = callPackage (
|
||||
{
|
||||
stdenv,
|
||||
pkg-config,
|
||||
fetchurl,
|
||||
xorgproto,
|
||||
libdrm,
|
||||
libpciaccess,
|
||||
xorgserver,
|
||||
testers,
|
||||
}:
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "xf86-video-sis";
|
||||
version = "0.12.0";
|
||||
builder = ./builder.sh;
|
||||
src = fetchurl {
|
||||
url = "mirror://xorg/individual/driver/xf86-video-sis-0.12.0.tar.gz";
|
||||
sha256 = "00j7i2r81496w27rf4nq9gc66n6nizp3fi7nnywrxs81j1j3pk4v";
|
||||
};
|
||||
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!
|
||||
xf86videosisusb = callPackage (
|
||||
{
|
||||
|
||||
@@ -468,6 +468,7 @@ print OUT <<EOF;
|
||||
xf86-video-geode,
|
||||
xf86-video-nouveau,
|
||||
xf86-video-s3virge,
|
||||
xf86-video-sis,
|
||||
xf86-video-v4l,
|
||||
xfd,
|
||||
xfontsel,
|
||||
@@ -683,6 +684,7 @@ self: with self; {
|
||||
xf86videogeode = xf86-video-geode;
|
||||
xf86videonouveau = xf86-video-nouveau;
|
||||
xf86videos3virge = xf86-video-s3virge;
|
||||
xf86videosis = xf86-video-sis;
|
||||
xf86videov4l = xf86-video-v4l;
|
||||
xkeyboardconfig = xkeyboard-config;
|
||||
xorgcffiles = xorg-cf-files;
|
||||
|
||||
@@ -27,7 +27,6 @@ mirror://xorg/individual/driver/xf86-video-qxl-0.1.6.tar.xz
|
||||
mirror://xorg/individual/driver/xf86-video-r128-6.13.0.tar.xz
|
||||
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-sis-0.12.0.tar.gz
|
||||
mirror://xorg/individual/driver/xf86-video-sisusb-0.9.7.tar.bz2
|
||||
mirror://xorg/individual/driver/xf86-video-suncg6-1.1.3.tar.xz
|
||||
mirror://xorg/individual/driver/xf86-video-sunffb-1.2.3.tar.xz
|
||||
|
||||
Reference in New Issue
Block a user