summaryrefslogtreecommitdiffstats
path: root/pkgs/by-name/li/libasr/package.nix
blob: efcc40aebd31edd4d7bc0570d37e2de29065112b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{
  lib,
  stdenv,
  fetchurl,
  libevent,
  openssl,
}:

stdenv.mkDerivation (finalAttrs: {
  pname = "libasr";
  version = "1.0.4";

  src = fetchurl {
    url = "https://www.opensmtpd.org/archives/libasr-${finalAttrs.version}.tar.gz";
    sha256 = "1d6s8njqhvayx2gp47409sp1fn8m608ws26hr1srfp6i23nnpyqr";
  };

  buildInputs = [
    libevent
    openssl
  ];

  meta = {
    homepage = "https://github.com/OpenSMTPD/libasr";
    description = "Free, simple and portable asynchronous resolver library";
    license = lib.licenses.isc;
    maintainers = [ lib.maintainers.koral ];
    platforms = lib.platforms.unix;
  };
})