From 3141204b2261ceb8807b7b82dfebe68bf7df3de6 Mon Sep 17 00:00:00 2001 From: Adam Joseph <54836058+a-m-joseph@users.noreply.github.com> Date: Mon, 9 May 2022 20:54:42 +0000 Subject: [PATCH] nbench: supply stdenv.glibc.static since Makefile uses -static (#172173) * nbench: supply stdenv.glibc.static since Makefile uses -static nbench's Makefile always compiles with -static, so we need it to be able to see libc.a. Let's add stdenv.glibc.static to the buildInputs. * predicate on isGnu --- pkgs/tools/misc/nbench/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/tools/misc/nbench/default.nix b/pkgs/tools/misc/nbench/default.nix index 16e67b848d65..744ce314ec4e 100644 --- a/pkgs/tools/misc/nbench/default.nix +++ b/pkgs/tools/misc/nbench/default.nix @@ -16,6 +16,10 @@ stdenv.mkDerivation rec { substituteInPlace Makefile --replace "-static" "" ''; + buildInputs = lib.optionals stdenv.hostPlatform.isGnu [ + stdenv.glibc.static + ]; + makeFlags = [ "CC=${stdenv.cc.targetPrefix}cc" ]; installPhase = ''