From 1c353c50ff6fa3df770007de622de165f5302874 Mon Sep 17 00:00:00 2001 From: Mark Vainomaa Date: Fri, 28 Jul 2023 13:44:17 +0300 Subject: [PATCH] docker: add glibc buildInput only on >=23.x --- pkgs/applications/virtualization/docker/default.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkgs/applications/virtualization/docker/default.nix b/pkgs/applications/virtualization/docker/default.nix index 24e6f5694cd3..5deb6d77c37b 100644 --- a/pkgs/applications/virtualization/docker/default.nix +++ b/pkgs/applications/virtualization/docker/default.nix @@ -182,7 +182,11 @@ rec { nativeBuildInputs = [ 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") [ (fetchpatch {