From 2aea16c4d6ee1fa4985ad94d04f2046b2e2b6df6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20=C4=8Cun=C3=A1t?= Date: Sun, 18 Aug 2019 20:58:56 +0200 Subject: [PATCH] glibc: depend on libidn2 (and libunistring, transitively) It's a bit hacky, but ATM I can't see any better way for glibc >= 2.28. Signed-off-by: Luka Blaskovic --- pkgs/development/libraries/glibc/common.nix | 10 +++++++ pkgs/stdenv/linux/default.nix | 29 ++++++++++++++++++--- 2 files changed, 35 insertions(+), 4 deletions(-) diff --git a/pkgs/development/libraries/glibc/common.nix b/pkgs/development/libraries/glibc/common.nix index a5a83b645abb..cd3b06f08643 100644 --- a/pkgs/development/libraries/glibc/common.nix +++ b/pkgs/development/libraries/glibc/common.nix @@ -22,6 +22,7 @@ , fetchurl, fetchpatch , linuxHeaders ? null , gd ? null, libpng ? null +, libidn2 , bison , python3 }: @@ -132,6 +133,15 @@ stdenv.mkDerivation ({ # nscd needs libgcc, and we don't want it dynamically linked # because we don't want it to depend on bootstrap-tools libs. echo "LDFLAGS-nscd += -static-libgcc" >> nscd/Makefile + + # Ensure that libidn2 is found. + patch -p 1 <