opensmtpd.table-redis: init at 1.0.1

The opensmtpd-extra package has been deprecated in favor of standalone
repositories for each of the filters. Introduce table-redis, which is
one of these new standalone filters to read login info from a Redis
instance.

Building table-redis does not work out of the box: while the project
correctly includes the hiredis include directory, the header itself is
contained in a "hiredis/" subdirectory. Add a patch to fix this.

+54
+54
pkgs/by-name/op/opensmtpd-table-redis/package.nix
··· 1 + { 2 + lib, 3 + stdenv, 4 + fetchFromGitHub, 5 + autoconf, 6 + automake, 7 + hiredis, 8 + }: 9 + stdenv.mkDerivation (finalAttrs: { 10 + pname = "opensmtpd-table-redis"; 11 + version = "1.0.1"; 12 + 13 + src = fetchFromGitHub { 14 + owner = "OpenSMTPD"; 15 + repo = "table-redis"; 16 + tag = finalAttrs.version; 17 + hash = "sha256-eS/jzran7/j3xrFuEqTLam0pokD/LBl4v2s/1ferCqk="; 18 + }; 19 + 20 + strictDeps = true; 21 + 22 + buildInputs = [ 23 + hiredis 24 + ]; 25 + 26 + nativeBuildInputs = [ 27 + autoconf 28 + automake 29 + ]; 30 + 31 + configureFlags = [ 32 + "--sysconfdir=/etc" 33 + "--localstatedir=/var" 34 + "--with-path-socket=/run" 35 + "--with-path-pidfile=/run" 36 + ]; 37 + 38 + env.NIX_CFLAGS_COMPILE = "-I${hiredis}/include/hiredis"; 39 + 40 + preConfigure = '' 41 + sh bootstrap 42 + ''; 43 + 44 + meta = { 45 + homepage = "https://www.opensmtpd.org/"; 46 + description = "ldap table for the OpenSMTPD mail server"; 47 + changelog = "https://github.com/OpenSMTPD/table-redis/releases/tag/${finalAttrs.version}"; 48 + license = lib.licenses.isc; 49 + platforms = lib.platforms.linux; 50 + maintainers = with lib.maintainers; [ 51 + pks 52 + ]; 53 + }; 54 + })