summary refs log tree commit diff
path: root/pkgs/misc/jackaudio/jack1.nix
diff options
context:
space:
mode:
authorJohn Ericson <John.Ericson@Obsidian.Systems>2018-03-09 17:58:36 -0500
committerJohn Ericson <John.Ericson@Obsidian.Systems>2018-03-12 18:55:41 -0400
commit79d8353b5e4bb98f1b51ab32b9b26df81bb7e106 (patch)
treef19c8d4068da9cb061983271bf2f8c2b2dc2f8f7 /pkgs/misc/jackaudio/jack1.nix
parenteeb8419c6a358a7b8d5a8fa9fc3d0352337196f7 (diff)
downloadnixlib-79d8353b5e4bb98f1b51ab32b9b26df81bb7e106.tar
nixlib-79d8353b5e4bb98f1b51ab32b9b26df81bb7e106.tar.gz
nixlib-79d8353b5e4bb98f1b51ab32b9b26df81bb7e106.tar.bz2
nixlib-79d8353b5e4bb98f1b51ab32b9b26df81bb7e106.tar.lz
nixlib-79d8353b5e4bb98f1b51ab32b9b26df81bb7e106.tar.xz
nixlib-79d8353b5e4bb98f1b51ab32b9b26df81bb7e106.tar.zst
nixlib-79d8353b5e4bb98f1b51ab32b9b26df81bb7e106.zip
treewide: Make `shouldUsePackages` copypasta use meta.available
The old way depended on old list-of-strings `meta.platforms`, and was
not good for cross.
Diffstat (limited to 'pkgs/misc/jackaudio/jack1.nix')
-rw-r--r--pkgs/misc/jackaudio/jack1.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/misc/jackaudio/jack1.nix b/pkgs/misc/jackaudio/jack1.nix
index 28ce85bd8a3f..43d23dd525ae 100644
--- a/pkgs/misc/jackaudio/jack1.nix
+++ b/pkgs/misc/jackaudio/jack1.nix
@@ -5,7 +5,7 @@
 }:
 
 let
-  shouldUsePkg = pkg: if pkg != null && stdenv.lib.any (x: x == stdenv.system) pkg.meta.platforms then pkg else null;
+  shouldUsePkg = pkg: if pkg != null && pkg.meta.available then pkg else null;
 
   optAlsaLib = shouldUsePkg alsaLib;
   optDb = shouldUsePkg db;