mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-26 21:33:03 +03:00
Merge pull request #21427 from active-group/actually-install-procmail
procmail: unbreak "make install"
This commit is contained in:
commit
4620c03eb5
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user