about summary refs log tree commit diff
path: root/pkgs/tools/misc/mbuffer
diff options
context:
space:
mode:
authorSteven Keuchel <steven.keuchel@gmail.com>2022-12-04 21:12:19 +0100
committerSteven Keuchel <steven.keuchel@gmail.com>2022-12-04 21:12:19 +0100
commitd911353cf8af68ca67f24fe193a6bcdfe12d598f (patch)
treea94e213349b018bc2688b7889e7e7f90a4af72ad /pkgs/tools/misc/mbuffer
parent4eebb348553be4622435ccb40da66c3139e7a9d1 (diff)
mbuffer: fix cross compilation
Diffstat (limited to 'pkgs/tools/misc/mbuffer')
-rw-r--r--pkgs/tools/misc/mbuffer/default.nix11
1 files changed, 2 insertions, 9 deletions
diff --git a/pkgs/tools/misc/mbuffer/default.nix b/pkgs/tools/misc/mbuffer/default.nix
index f01a0c6d4d546..c7f14cf6a5823 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; {