From 20c5aa5b7dc5f681b6dfd05c88b3287714beb481 Mon Sep 17 00:00:00 2001 From: Mike Sperber Date: Mon, 26 Dec 2016 14:46:18 +0100 Subject: [PATCH] procmail: unbreak "make install" procmail's Makefile lacks a ".PHONY: install" line, which turns "make install" into a no-op, at least on macOS. Insert one. --- pkgs/applications/misc/procmail/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/applications/misc/procmail/default.nix b/pkgs/applications/misc/procmail/default.nix index 0bdc771e2bdd..b62c6b77cac3 100644 --- a/pkgs/applications/misc/procmail/default.nix +++ b/pkgs/applications/misc/procmail/default.nix @@ -6,11 +6,15 @@ stdenv.mkDerivation { patches = [ ./CVE-2014-3618.patch ]; # getline is defined differently in glibc now. So rename it. + # Without the .PHONY target "make install" won't install anything on Darwin. postPatch = '' sed -e "s%^RM.*$%#%" -i Makefile sed -e "s%^BASENAME.*%\BASENAME=$out%" -i Makefile sed -e "s%^LIBS=.*%LIBS=-lm%" -i Makefile sed -e "s%getline%thisgetline%g" -i src/*.c src/*.h + sed -e "3i\ +.PHONY: install +" -i Makefile ''; src = fetchurl {