diff options
author | Adam Joseph <adam@westernsemico.com> | 2023-04-20 14:16:02 -0700 |
---|---|---|
committer | Adam Joseph <adam@westernsemico.com> | 2023-08-05 16:27:33 -0700 |
commit | dc028fdac2393ec3ec178598095c3a314c0a8957 (patch) | |
tree | 6aee78d3a9d9c4acbd7cc344bf105cb603d1fd88 | |
parent | 5faab29808a2d72f4ee0c44c8e850e4e6ada972f (diff) | |
download | nixpkgs-dc028fdac2393ec3ec178598095c3a314c0a8957.tar nixpkgs-dc028fdac2393ec3ec178598095c3a314c0a8957.tar.gz nixpkgs-dc028fdac2393ec3ec178598095c3a314c0a8957.tar.bz2 nixpkgs-dc028fdac2393ec3ec178598095c3a314c0a8957.tar.lz nixpkgs-dc028fdac2393ec3ec178598095c3a314c0a8957.tar.xz nixpkgs-dc028fdac2393ec3ec178598095c3a314c0a8957.tar.zst nixpkgs-dc028fdac2393ec3ec178598095c3a314c0a8957.zip |
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.
-rw-r--r-- | pkgs/tools/filesystems/ceph/default.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/tools/filesystems/ceph/default.nix b/pkgs/tools/filesystems/ceph/default.nix index 1b0c9c98633..5f3c8b22b88 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; |