From 841b89cac85398ca49591bc7d7bc21655a8aaf83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Sat, 14 Mar 2020 07:28:34 +0000 Subject: [PATCH] mc: add autoreconfHook instead of /usr/bin/file patch The error is still there but harmless. It should be rather fixed in autoconf than in every package that uses autotools. --- pkgs/tools/misc/mc/default.nix | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/pkgs/tools/misc/mc/default.nix b/pkgs/tools/misc/mc/default.nix index 42e155fcaf2..60bc153c83f 100644 --- a/pkgs/tools/misc/mc/default.nix +++ b/pkgs/tools/misc/mc/default.nix @@ -15,6 +15,7 @@ , libssh2 , openssl , coreutils +, autoreconfHook }: stdenv.mkDerivation rec { @@ -26,17 +27,7 @@ stdenv.mkDerivation rec { sha256 = "0ikd2yql44p7nagmb08dmjqdwadclnvgr7ri9pmzc2s5f301r7w5"; }; - preConfigure = '' - for f in \ - ./configure \ - ./config/ltmain.sh \ - ./m4/libtool.m4 \ - ; do - substituteInPlace $f --replace /usr/bin/file ${file}/bin/file - done - ''; - - nativeBuildInputs = [ pkgconfig ]; + nativeBuildInputs = [ pkgconfig autoreconfHook ]; buildInputs = [ file