at master 52 lines 1.0 kB view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 autoconf, 6 automake, 7 libpq, 8}: 9stdenv.mkDerivation (finalAttrs: { 10 pname = "opensmtpd-table-postgres"; 11 version = "1.1.1"; 12 13 src = fetchFromGitHub { 14 owner = "OpenSMTPD"; 15 repo = "table-postgres"; 16 tag = finalAttrs.version; 17 hash = "sha256-CGtqCQnsUvgsBIJOVXphkisp3Iij+oW88w7Y1njusx8="; 18 }; 19 20 strictDeps = true; 21 22 buildInputs = [ 23 libpq 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 preConfigure = '' 39 sh bootstrap 40 ''; 41 42 meta = { 43 homepage = "https://www.opensmtpd.org/"; 44 description = "PostgreSQL tables for the OpenSMTPD mail server"; 45 changelog = "https://github.com/OpenSMTPD/table-postgres/releases/tag/${finalAttrs.version}"; 46 license = lib.licenses.isc; 47 platforms = lib.platforms.linux; 48 maintainers = with lib.maintainers; [ 49 pks 50 ]; 51 }; 52})