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:
parent
5faab29808
commit
dc028fdac2
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue