mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-22 21:04:30 +00:00
pkgsStatic.libdrm: fix build
Not having Intel support is certainly not ideal, but it's better than nothing.
This commit is contained in:
parent
4fc3b0b3a4
commit
ef0e3af8ef
@ -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 [
|
||||
|
Loading…
Reference in New Issue
Block a user