Merge pull request #310802 from alyssais/libdrm-static

pkgsStatic.libdrm: fix build
This commit is contained in:
WilliButz 2024-05-12 17:03:19 +02:00 committed by GitHub
commit ce5e22c4c7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 9 additions and 2 deletions

View File

@ -1,5 +1,6 @@
{ stdenv, lib, fetchurl, pkg-config, meson, ninja, docutils
, libpthreadstubs, libpciaccess
, libpthreadstubs
, withIntel ? lib.meta.availableOn stdenv.hostPlatform libpciaccess, libpciaccess
, withValgrind ? lib.meta.availableOn stdenv.hostPlatform valgrind-light, valgrind-light
, gitUpdater
}:
@ -16,12 +17,14 @@ stdenv.mkDerivation rec {
outputs = [ "out" "dev" "bin" ];
nativeBuildInputs = [ pkg-config meson ninja docutils ];
buildInputs = [ libpthreadstubs libpciaccess ]
buildInputs = [ libpthreadstubs ]
++ lib.optional withIntel libpciaccess
++ lib.optional withValgrind valgrind-light;
mesonFlags = [
"-Dinstall-test-programs=true"
"-Dcairo-tests=disabled"
(lib.mesonEnable "intel" withIntel)
(lib.mesonEnable "omap" stdenv.hostPlatform.isLinux)
(lib.mesonEnable "valgrind" withValgrind)
] ++ lib.optionals stdenv.hostPlatform.isAarch [

View File

@ -422,6 +422,10 @@ self: super:
# https://gitlab.freedesktop.org/xorg/lib/libpciaccess/-/blob/master/configure.ac#L108-114
platforms = lib.fold (os: ps: ps ++ lib.platforms.${os}) []
[ "cygwin" "freebsd" "linux" "netbsd" "openbsd" "illumos" ];
badPlatforms = [
# mandatory shared library
lib.systems.inspect.platformPatterns.isStatic
];
};
});