nixpkgs-suyu/pkgs/development/libraries/libmilter/default.nix

45 lines
1.3 KiB
Nix
Raw Normal View History

2016-10-21 02:04:38 +02:00
{ stdenv, fetchurl, m4 }:
stdenv.mkDerivation rec {
pname = "libmilter";
2016-10-21 02:04:38 +02:00
version = "8.15.2";
src = fetchurl {
2016-10-21 02:04:38 +02:00
url = "ftp://ftp.sendmail.org/pub/sendmail/sendmail.${version}.tar.gz";
sha256 = "0fdl9ndmspqspdlmghzxlaqk56j3yajk52d7jxcg21b7sxglpy94";
};
2016-10-21 02:04:38 +02:00
buildPhase = ''
mkdir -p $out/lib
cd libmilter
cat > a.m4 <<EOF
2018-12-12 00:05:32 +01:00
define(\`confCC', \`$CC')
define(\`confAR', \`$AR')
define(\`confEBINDIR', \`$out/libexec')
define(\`confINCLUDEDIR', \`$out/include')
define(\`confLIBDIR', \`$out/lib')
define(\`confMANROOT', \`$out/man/cat')
define(\`confMANROOTMAN', \`$out/man/man')
define(\`confMBINDIR', \`$out/sbin')
define(\`confSBINDIR', \`$out/sbin')
define(\`confSHAREDLIBDIR', \`$out/lib')
define(\`confUBINDIR', \`$out/bin')
define(\`confINCGRP', \`root')
define(\`confLIBGRP', \`root')
2015-01-19 10:44:28 +01:00
APPENDDEF(\`confENVDEF', \`-DNETINET6')
EOF
sh Build -f ./a.m4
'';
patches = [ ./install.patch ./sharedlib.patch ./glibc-2.30.patch ];
2018-12-12 00:05:32 +01:00
nativeBuildInputs = [ m4 ];
2016-10-21 02:04:38 +02:00
meta = with stdenv.lib; {
description = "Sendmail Milter mail filtering API library";
platforms = platforms.unix;
maintainers = with maintainers; [ fpletz ];
2018-10-18 21:00:17 +02:00
license = licenses.sendmail;
};
}