systemd: Replace meta.available checks
This sort of code breaks config.{allowBroken, allowUnsupportedSystem} = true by making them do unpredictable things.
This commit is contained in:
parent
1d65e473e7
commit
fe7919f7a1
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, fetchFromGitHub, fetchpatch, pkgconfig, intltool, gperf, libcap, kmod
|
{ stdenv, lib, fetchFromGitHub, fetchpatch, pkgconfig, intltool, gperf, libcap, kmod
|
||||||
, xz, pam, acl, libuuid, m4, utillinux, libffi
|
, xz, pam, acl, libuuid, m4, utillinux, libffi
|
||||||
, glib, kbd, libxslt, coreutils, libgcrypt, libgpgerror, libidn2, libapparmor
|
, glib, kbd, libxslt, coreutils, libgcrypt, libgpgerror, libidn2, libapparmor
|
||||||
, audit, lz4, bzip2, libmicrohttpd, pcre2
|
, audit, lz4, bzip2, libmicrohttpd, pcre2
|
||||||
@ -10,8 +10,8 @@
|
|||||||
, getent
|
, getent
|
||||||
, buildPackages
|
, buildPackages
|
||||||
, withSelinux ? false, libselinux
|
, withSelinux ? false, libselinux
|
||||||
, withLibseccomp ? libseccomp.meta.available, libseccomp
|
, withLibseccomp ? lib.any (lib.meta.platformMatch stdenv.hostPlatform) libseccomp.meta.platforms, libseccomp
|
||||||
, withKexectools ? kexectools.meta.available, kexectools
|
, withKexectools ? lib.any (lib.meta.platformMatch stdenv.hostPlatform) kexectools.meta.platforms, kexectools
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
|
Loading…
x
Reference in New Issue
Block a user