diff --git a/pkgs/development/libraries/libasr/default.nix b/pkgs/development/libraries/libasr/default.nix new file mode 100644 index 000000000000..f4c9cc8c5e01 --- /dev/null +++ b/pkgs/development/libraries/libasr/default.nix @@ -0,0 +1,20 @@ +{ stdenv, fetchurl, libevent, openssl }: + +stdenv.mkDerivation rec { + name = "libasr-${version}"; + version= "1.0.1"; + + src = fetchurl { + url = "https://www.opensmtpd.org/archives/${name}.tar.gz"; + sha256 = "10h1c9b58msbggns8k2m0857zmbldb0x8ghk3aay88yn2bip2916"; + }; + + buildInputs = [ libevent openssl ]; + + meta = with stdenv.lib; { + homepage = https://github.com/OpenSMTPD/libasr; + description = "Free, simple and portable asynchronous resolver library."; + license = licenses.isc; + maintainers = [ maintainers.koral ]; + }; +} diff --git a/pkgs/servers/mail/opensmtpd/default.nix b/pkgs/servers/mail/opensmtpd/default.nix index 8cabb8cac942..d2c19a2a00b1 100644 --- a/pkgs/servers/mail/opensmtpd/default.nix +++ b/pkgs/servers/mail/opensmtpd/default.nix @@ -1,17 +1,17 @@ -{ stdenv, fetchurl, libevent, zlib, openssl, db, bison, pam }: +{ stdenv, fetchurl, libasr, libevent, zlib, openssl, db, bison, pam }: stdenv.mkDerivation rec { name = "opensmtpd-${version}"; - version = "5.4.2p1"; + version = "5.4.4p1"; - buildInputs = [ libevent zlib openssl db bison pam ]; + buildInputs = [ libasr libevent zlib openssl db bison pam ]; src = fetchurl { url = "http://www.opensmtpd.org/archives/${name}.tar.gz"; - sha256 = "18nrzfjhv9znb5dbhc5k3fi31a3vr1r8j36q3fzghkh47n6z9yjg"; - }; + sha256 = "1gcfdmpkk892wnnhwc2nb559bwl3k892w7saj4q8m6jfll53660i"; + }; - configureFlags = [ + configureFlags = [ "--with-mantype=doc" "--with-pam" "--without-bsd-auth" @@ -19,7 +19,7 @@ stdenv.mkDerivation rec { "--with-privsep-user=smtpd" "--with-queue-user=smtpq" "--with-ca-file=/etc/ssl/certs/ca-bundle.crt" - ]; + ]; meta = { homepage = https://www.opensmtpd.org/; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index ca3bfbeb5f99..a40f943f99d7 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -5966,6 +5966,8 @@ let libarchive = callPackage ../development/libraries/libarchive { }; + libasr = callPackage ../development/libraries/libasr { }; + libass = callPackage ../development/libraries/libass { }; libassuan1 = callPackage ../development/libraries/libassuan1 { };