From 600212b787be47568970538b8c619c2bf7191ab4 Mon Sep 17 00:00:00 2001 From: Dmitry Bogatov Date: Mon, 30 Nov 2020 00:00:00 -0500 Subject: [PATCH] mmh: fix static build --- pkgs/applications/networking/mailreaders/mmh/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/applications/networking/mailreaders/mmh/default.nix b/pkgs/applications/networking/mailreaders/mmh/default.nix index 7d6254ed13cc..6bd977bd319b 100644 --- a/pkgs/applications/networking/mailreaders/mmh/default.nix +++ b/pkgs/applications/networking/mailreaders/mmh/default.nix @@ -10,6 +10,11 @@ in stdenv.mkDerivation rec { sha256 = "1q97p4g3f1q2m567i2dbx7mm7ixw3g91ww2rymwj42cxk9iyizhv"; }; + postPatch = '' + substituteInPlace sbr/Makefile.in \ + --replace "ar " "${stdenv.cc.targetPrefix}ar " + ''; + buildInputs = [ ncurses ]; nativeBuildInputs = [ autoreconfHook flex ];