Merge pull request #247414 from amjoseph-nixpkgs/pr/meta.availableOn/ceph

This commit is contained in:
Artturi 2023-08-28 21:54:29 +03:00 committed by GitHub
commit 9815bda285
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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;