pkgsStatic.libdrm: fix build

Not having Intel support is certainly not ideal, but it's better than
nothing.
This commit is contained in:
Alyssa Ross 2024-05-11 11:37:08 +02:00
parent 4fc3b0b3a4
commit ef0e3af8ef
No known key found for this signature in database
GPG Key ID: F9DBED4859B271C0

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 [