xorg.libpciaccess: fix build on NetBSD

This commit is contained in:
Alyssa Ross 2023-01-12 21:07:43 +00:00
parent abdc781d4c
commit 13d8068354
No known key found for this signature in database
GPG Key ID: F9DBED4859B271C0

View File

@ -3,7 +3,7 @@
lib, stdenv, makeWrapper, fetchurl, fetchpatch, fetchFromGitLab, buildPackages,
automake, autoconf, libiconv, libtool, intltool,
freetype, tradcpp, fontconfig, meson, ninja, ed, fontforge,
libGL, spice-protocol, zlib, libGLU, dbus, libunwind, libdrm,
libGL, spice-protocol, zlib, libGLU, dbus, libunwind, libdrm, netbsd,
mesa, udev, bootstrap_cmds, bison, flex, clangStdenv, autoreconfHook,
mcpp, libepoxy, openssl, pkg-config, llvm, libxslt, libxcrypt,
ApplicationServices, Carbon, Cocoa, Xplugin,
@ -328,6 +328,8 @@ self: super:
});
libpciaccess = super.libpciaccess.overrideAttrs (attrs: {
buildInputs = lib.optionals stdenv.hostPlatform.isNetBSD (with netbsd; [ libarch libpci ]);
meta = attrs.meta // {
# https://gitlab.freedesktop.org/xorg/lib/libpciaccess/-/blob/master/configure.ac#L108-114
platforms = lib.fold (os: ps: ps ++ lib.platforms.${os}) []