fix build of procmail
svn path=/nixpkgs/trunk/; revision=19944
This commit is contained in:
parent
9501307305
commit
ec88f45c93
|
@ -4,11 +4,13 @@ stdenv.mkDerivation {
|
|||
|
||||
buildInputs = [ stdenv.gcc.libc ];
|
||||
|
||||
# getline is defined differently in glibc now. So rename it.
|
||||
installPhase = "
|
||||
ensureDir \$out/bin
|
||||
sed -e \"s%^RM.*$%RM=`type -f rm | awk '{print $3;}'` -f%\" -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
|
||||
make DESTDIR=\$out install
|
||||
";
|
||||
|
||||
|
|
Loading…
Reference in New Issue