ceph: use availableOn instead of 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:16:02 -07:00
parent 5faab29808
commit dc028fdac2

View file

@ -85,7 +85,7 @@
assert cryptopp != null || (nss != null && nspr != null);
let
shouldUsePkg = pkg: if pkg != null && pkg.meta.available then pkg else null;
shouldUsePkg = pkg: if pkg != null && lib.meta.availableOn stdenv.hostPlatform pkg then pkg else null;
optYasm = shouldUsePkg yasm;
optExpat = shouldUsePkg expat;