libdrm: use lib.availableOn instead of lib.meta.available

pkg.meta.available is deprecated (see subsequent commit which adds a
warning) and does not distinguish between the buildPlatform and the
hostPlatform.
This commit is contained in:
Adam Joseph 2023-04-20 14:17:01 -07:00
parent 5faab29808
commit eb6b7c353c

View file

@ -1,6 +1,6 @@
{ stdenv, lib, fetchurl, pkg-config, meson, ninja, docutils
, libpthreadstubs, libpciaccess
, withValgrind ? valgrind-light.meta.available, valgrind-light
, withValgrind ? lib.meta.availableOn stdenv.hostPlatform valgrind-light, valgrind-light
}:
stdenv.mkDerivation rec {