opensmtpd.table-sqlite: init at 1.0.1

The opensmtpd-extra package has been deprecated in favor of standalone
repositories for each of the filters. Introduce table-sqlite, which is
one of these new standalone filters to read login info from an sqlite
database.
This commit is contained in:
Patrick Steinhardt
2025-04-28 13:26:53 +02:00
parent bef886ed23
commit 058a8bce1e
@@ -0,0 +1,52 @@
{
lib,
stdenv,
fetchFromGitHub,
autoconf,
automake,
sqlite,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "opensmtpd-table-sqlite";
version = "1.0.1";
src = fetchFromGitHub {
owner = "OpenSMTPD";
repo = "table-sqlite";
tag = finalAttrs.version;
hash = "sha256-Y5AveTo+Ol6cMcxOW3/GMZZD+17HiQdQ4Vg5WHPjKgA=";
};
strictDeps = true;
buildInputs = [
sqlite
];
nativeBuildInputs = [
autoconf
automake
];
configureFlags = [
"--sysconfdir=/etc"
"--localstatedir=/var"
"--with-path-socket=/run"
"--with-path-pidfile=/run"
];
preConfigure = ''
sh bootstrap
'';
meta = {
homepage = "https://www.opensmtpd.org/";
description = "ldap table for the OpenSMTPD mail server";
changelog = "https://github.com/OpenSMTPD/table-sqlite/releases/tag/${finalAttrs.version}";
license = lib.licenses.isc;
platforms = lib.platforms.linux;
maintainers = with lib.maintainers; [
pks
];
};
})