lib.meta: introduce availableOn
This commit is contained in:
@@ -3,8 +3,8 @@
|
||||
, flex, bison
|
||||
, linuxHeaders ? stdenv.cc.libc.linuxHeaders
|
||||
, gawk
|
||||
, withPerl ? stdenv.hostPlatform == stdenv.buildPlatform && lib.any (lib.meta.platformMatch stdenv.hostPlatform) perl.meta.platforms, perl
|
||||
, withPython ? stdenv.hostPlatform == stdenv.buildPlatform && lib.any (lib.meta.platformMatch stdenv.hostPlatform) python.meta.platforms, python
|
||||
, withPerl ? stdenv.hostPlatform == stdenv.buildPlatform && lib.meta.availableOn stdenv.hostPlatform perl, perl
|
||||
, withPython ? stdenv.hostPlatform == stdenv.buildPlatform && lib.meta.availableOn stdenv.hostPlatform python, python
|
||||
, swig
|
||||
, ncurses
|
||||
, pam
|
||||
|
||||
@@ -51,9 +51,9 @@
|
||||
, iptables
|
||||
, withSelinux ? false
|
||||
, libselinux
|
||||
, withLibseccomp ? lib.any (lib.meta.platformMatch stdenv.hostPlatform) libseccomp.meta.platforms
|
||||
, withLibseccomp ? lib.meta.availableOn stdenv.hostPlatform libseccomp
|
||||
, libseccomp
|
||||
, withKexectools ? lib.any (lib.meta.platformMatch stdenv.hostPlatform) kexectools.meta.platforms
|
||||
, withKexectools ? lib.meta.availableOn stdenv.hostPlatform kexectools
|
||||
, kexectools
|
||||
, bashInteractive
|
||||
, libmicrohttpd
|
||||
|
||||
Reference in New Issue
Block a user