From d911353cf8af68ca67f24fe193a6bcdfe12d598f Mon Sep 17 00:00:00 2001 From: Steven Keuchel Date: Sun, 4 Dec 2022 21:12:19 +0100 Subject: [PATCH] mbuffer: fix cross compilation --- pkgs/tools/misc/mbuffer/default.nix | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/pkgs/tools/misc/mbuffer/default.nix b/pkgs/tools/misc/mbuffer/default.nix index f01a0c6d4d54..c7f14cf6a582 100644 --- a/pkgs/tools/misc/mbuffer/default.nix +++ b/pkgs/tools/misc/mbuffer/default.nix @@ -16,18 +16,11 @@ stdenv.mkDerivation rec { buildInputs = [ openssl + ]; + nativeBuildInputs = [ which ]; - # The mbuffer configure scripts fails to recognize the correct - # objdump binary during cross-building for foreign platforms. - # The correct objdump is exposed via the environment variable - # $OBJDUMP, which should be used in such cases. - preConfigure = lib.optionalString (stdenv.hostPlatform != stdenv.buildPlatform) '' - substituteInPlace configure \ - --replace "OBJDUMP=$ac_cv_path_OBJDUMP" 'OBJDUMP=''${OBJDUMP}' - ''; - doCheck = true; meta = with lib; {