docker: add glibc buildInput only on >=23.x

This commit is contained in:
Mark Vainomaa 2023-07-28 13:44:17 +03:00
parent 503953bd00
commit 1c353c50ff
No known key found for this signature in database
GPG Key ID: 1B3F9523B542D315

View File

@ -182,7 +182,11 @@ rec {
nativeBuildInputs = [ nativeBuildInputs = [
makeWrapper pkg-config go-md2man go libtool installShellFiles makeWrapper pkg-config go-md2man go libtool installShellFiles
]; ];
buildInputs = [ glibc glibc.static ] ++ plugins;
buildInputs = plugins ++ lib.optionals (lib.versionAtLeast version "23") [
glibc
glibc.static
];
patches = lib.optionals (lib.versionOlder version "23.0.5") [ patches = lib.optionals (lib.versionOlder version "23.0.5") [
(fetchpatch { (fetchpatch {