From dc028fdac2393ec3ec178598095c3a314c0a8957 Mon Sep 17 00:00:00 2001 From: Adam Joseph Date: Thu, 20 Apr 2023 14:16:02 -0700 Subject: [PATCH] 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. --- pkgs/tools/filesystems/ceph/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/tools/filesystems/ceph/default.nix b/pkgs/tools/filesystems/ceph/default.nix index 1b0c9c98633ae1b..5f3c8b22b888b11 100644 --- a/pkgs/tools/filesystems/ceph/default.nix +++ b/pkgs/tools/filesystems/ceph/default.nix @@ -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;