mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-24 06:33:42 +00:00
9bb3fccb5b
continuation of #109595 pkgconfig was aliased in 2018, however, it remained in all-packages.nix due to its wide usage. This cleans up the remaining references to pkgs.pkgsconfig and moves the entry to aliases.nix. python3Packages.pkgconfig remained unchanged because it's the canonical name of the upstream package on pypi.
92 lines
2.3 KiB
Nix
92 lines
2.3 KiB
Nix
{ lib, stdenv, fetchurl, openssl, libevent, libasr,
|
|
python2, pkg-config, lua5, perl, libmysqlclient, postgresql, sqlite, hiredis,
|
|
enablePython ? true,
|
|
enableLua ? true,
|
|
enablePerl ? true,
|
|
enableMysql ? true,
|
|
enablePostgres ? true,
|
|
enableSqlite ? true,
|
|
enableRedis ? true,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "opensmtpd-extras";
|
|
version = "6.7.1";
|
|
|
|
src = fetchurl {
|
|
url = "https://www.opensmtpd.org/archives/${pname}-${version}.tar.gz";
|
|
sha256 = "1b1mx71bvmv92lbm08wr2p60g3qhikvv3n15zsr6dcwbk9aqahzq";
|
|
};
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
buildInputs = [ openssl libevent
|
|
libasr python2 lua5 perl libmysqlclient postgresql sqlite hiredis ];
|
|
|
|
configureFlags = [
|
|
"--sysconfdir=/etc"
|
|
"--localstatedir=/var"
|
|
"--with-privsep-user=smtpd"
|
|
"--with-libevent-dir=${libevent.dev}"
|
|
|
|
"--with-filter-clamav"
|
|
"--with-filter-dkim-signer"
|
|
"--with-filter-dnsbl"
|
|
"--with-filter-monkey"
|
|
"--with-filter-pause"
|
|
"--with-filter-regex"
|
|
"--with-filter-spamassassin"
|
|
"--with-filter-stub"
|
|
"--with-filter-trace"
|
|
"--with-filter-void"
|
|
"--with-queue-null"
|
|
"--with-queue-ram"
|
|
"--with-queue-stub"
|
|
"--with-table-ldap"
|
|
"--with-table-socketmap"
|
|
"--with-table-passwd"
|
|
"--with-table-stub"
|
|
"--with-scheduler-ram"
|
|
"--with-scheduler-stub"
|
|
|
|
] ++ lib.optionals enablePython [
|
|
"--with-python=${python2}"
|
|
"--with-filter-python"
|
|
"--with-queue-python"
|
|
"--with-table-python"
|
|
"--with-scheduler-python"
|
|
|
|
] ++ lib.optionals enableLua [
|
|
"--with-lua=${pkg-config}"
|
|
"--with-filter-lua"
|
|
|
|
] ++ lib.optionals enablePerl [
|
|
"--with-perl=${perl}"
|
|
"--with-filter-perl"
|
|
|
|
] ++ lib.optionals enableMysql [
|
|
"--with-table-mysql"
|
|
|
|
] ++ lib.optionals enablePostgres [
|
|
"--with-table-postgres"
|
|
|
|
] ++ lib.optionals enableSqlite [
|
|
"--with-table-sqlite"
|
|
|
|
] ++ lib.optionals enableRedis [
|
|
"--with-table-redis"
|
|
];
|
|
|
|
NIX_CFLAGS_COMPILE = lib.optionalString enableRedis
|
|
"-I${hiredis}/include/hiredis -lhiredis"
|
|
+ lib.optionalString enableMysql
|
|
" -L${libmysqlclient}/lib/mysql";
|
|
|
|
meta = with lib; {
|
|
homepage = "https://www.opensmtpd.org/";
|
|
description = "Extra plugins for the OpenSMTPD mail server";
|
|
license = licenses.isc;
|
|
platforms = platforms.linux;
|
|
maintainers = with maintainers; [ gebner ekleog ];
|
|
};
|
|
}
|