libmilter: fix cross-build

This commit is contained in:
Jörg Thalheim 2018-12-11 23:05:32 +00:00
parent 42070c9b0d
commit c3e967dc35
No known key found for this signature in database
GPG key ID: CA4106B8D7CC79FA

View file

@ -13,6 +13,8 @@ stdenv.mkDerivation rec {
mkdir -p $out/lib
cd libmilter
cat > a.m4 <<EOF
define(\`confCC', \`$CC')
define(\`confAR', \`$AR')
define(\`confEBINDIR', \`$out/libexec')
define(\`confINCLUDEDIR', \`$out/include')
define(\`confLIBDIR', \`$out/lib')
@ -29,9 +31,9 @@ stdenv.mkDerivation rec {
sh Build -f ./a.m4
'';
patches = [ ./install.patch ./sharedlib.patch];
patches = [ ./install.patch ./sharedlib.patch ];
buildInputs = [ m4 ];
nativeBuildInputs = [ m4 ];
meta = with stdenv.lib; {
description = "Sendmail Milter mail filtering API library";