From 5e27e9bb31cfb29d64984562494da6cc85581f92 Mon Sep 17 00:00:00 2001 From: FliegendeWurst Date: Tue, 21 Jan 2025 16:35:39 +0100 Subject: [PATCH] libtomcrypt: fix cross build --- pkgs/by-name/li/libtomcrypt/package.nix | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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 = ''