From 058a8bce1e01c4a526f8766cda42d0d0f65fc947 Mon Sep 17 00:00:00 2001 From: Patrick Steinhardt Date: Mon, 16 Dec 2024 08:03:19 +0100 Subject: [PATCH] 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. --- .../op/opensmtpd-table-sqlite/package.nix | 52 +++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 pkgs/by-name/op/opensmtpd-table-sqlite/package.nix diff --git a/pkgs/by-name/op/opensmtpd-table-sqlite/package.nix b/pkgs/by-name/op/opensmtpd-table-sqlite/package.nix new file mode 100644 index 000000000000..a85f91f48f17 --- /dev/null +++ b/pkgs/by-name/op/opensmtpd-table-sqlite/package.nix @@ -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 + ]; + }; +})