From 2e808509f01865e86568c107d20c0d4f8fa6ab1e Mon Sep 17 00:00:00 2001 From: Will Dietz Date: Wed, 4 Sep 2019 20:45:18 -0500 Subject: [PATCH] xbps: fix build w/glibc, disable errors due to unused fread result --- pkgs/tools/package-management/xbps/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/tools/package-management/xbps/default.nix b/pkgs/tools/package-management/xbps/default.nix index f85f7988827c..f83a1498825b 100644 --- a/pkgs/tools/package-management/xbps/default.nix +++ b/pkgs/tools/package-management/xbps/default.nix @@ -17,6 +17,8 @@ stdenv.mkDerivation rec { patches = [ ./cert-paths.patch ]; + NIX_CFLAGS_COMPILE = [ "-Wno-error=unused-result" ]; + postPatch = '' # fix unprefixed ranlib (needed on cross) substituteInPlace lib/Makefile \