1{ lib, stdenv, fetchurl, libevent, openssl }:
2
3stdenv.mkDerivation rec {
4 pname = "libasr";
5 version= "1.0.4";
6
7 src = fetchurl {
8 url = "https://www.opensmtpd.org/archives/${pname}-${version}.tar.gz";
9 sha256 = "1d6s8njqhvayx2gp47409sp1fn8m608ws26hr1srfp6i23nnpyqr";
10 };
11
12 buildInputs = [ libevent openssl ];
13
14 meta = with lib; {
15 homepage = "https://github.com/OpenSMTPD/libasr";
16 description = "Free, simple and portable asynchronous resolver library";
17 license = licenses.isc;
18 maintainers = [ maintainers.koral ];
19 platforms = platforms.unix;
20 };
21}