From 79d8353b5e4bb98f1b51ab32b9b26df81bb7e106 Mon Sep 17 00:00:00 2001 From: John Ericson Date: Fri, 9 Mar 2018 17:58:36 -0500 Subject: treewide: Make `shouldUsePackages` copypasta use meta.available The old way depended on old list-of-strings `meta.platforms`, and was not good for cross. --- pkgs/development/libraries/wiredtiger/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkgs/development/libraries') diff --git a/pkgs/development/libraries/wiredtiger/default.nix b/pkgs/development/libraries/wiredtiger/default.nix index 9d11b98b1cbd..c905c40cf960 100644 --- a/pkgs/development/libraries/wiredtiger/default.nix +++ b/pkgs/development/libraries/wiredtiger/default.nix @@ -15,7 +15,7 @@ let mkWith = mkFlag "with-" "without-"; mkOther = mkFlag "" "" true; - shouldUsePkg = pkg: if pkg != null && any (x: x == stdenv.system) pkg.meta.platforms then pkg else null; + shouldUsePkg = pkg: if pkg != null && pkg.meta.available then pkg else null; optLz4 = shouldUsePkg lz4; optSnappy = shouldUsePkg snappy; -- cgit 1.4.1