diff --git a/pkgs/by-name/li/libtomcrypt/package.nix b/pkgs/by-name/li/libtomcrypt/package.nix index f2a74bba838b..35bb906ee2a2 100644 --- a/pkgs/by-name/li/libtomcrypt/package.nix +++ b/pkgs/by-name/li/libtomcrypt/package.nix @@ -24,13 +24,14 @@ stdenv.mkDerivation rec { }) ]; - nativeBuildInputs = [ - libtool + buildInputs = [ libtommath ]; postPatch = '' - substituteInPlace makefile.shared --replace "LIBTOOL:=glibtool" "LIBTOOL:=libtool" + substituteInPlace makefile.shared \ + --replace-fail "LIBTOOL:=glibtool" "LIBTOOL:=libtool" \ + --replace-fail libtool "${lib.getExe libtool}" ''; preBuild = ''