mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 06:45:16 +01:00
fixed install phase so the linker doesn't abort with undefined reference to pow()
svn path=/nixpkgs/trunk/; revision=10826
This commit is contained in:
parent
e8dd657896
commit
2dde1dfa4f
1 changed files with 8 additions and 5 deletions
|
@ -1,18 +1,21 @@
|
|||
args: with args;
|
||||
stdenv.mkDerivation {
|
||||
name="procmail-3.22";
|
||||
buildInputs = [stdenv.gcc.libc];
|
||||
|
||||
buildInputs = [ stdenv.gcc.libc ];
|
||||
|
||||
installPhase = "
|
||||
ensureDir \$out/bin
|
||||
find . -exec sed -e \"s%^RM[ \\t]*=%RM=`type -f rm | awk '{print $3;}'`%\" -i '{}' ';'
|
||||
sed -e 's%\\(LDFLAGS = \$(LDFLAGS1) -lnsl -ldl -lc\\)%\\1 -m%' -i src/Makefile
|
||||
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
|
||||
make DESTDIR=\$out install
|
||||
";
|
||||
phases ="installPhase";
|
||||
|
||||
phases = "unpackPhase installPhase";
|
||||
|
||||
src = fetchurl {
|
||||
url = ftp://ftp.fu-berlin.de/pub/unix/mail/procmail/procmail-3.22.tar.gz;
|
||||
sha256 = "05z1c803n5cppkcq99vkyd5myff904lf9sdgynfqngfk9nrpaz08";
|
||||
};
|
||||
o=62;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue