blob: 7d85077d7e8a1132a6d1fb3c771d5e452397e691 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
{ lib, buildNimPackage, fetchFromSourcehut, pkg-config, getdns }:
buildNimPackage rec {
pname = "getdns";
version = "20221222";
src = fetchFromSourcehut {
owner = "~ehmry";
repo = pname + "-nim";
rev = version;
hash = "sha256-y7yzY1PcodIK2kC9409FuTpLn0TsWHGiEPnrULrob+k=";
};
propagatedNativeBuildInputs = [ pkg-config ];
propagatedBuildInputs = [ getdns ];
checkPhase = "nim c tests/test_example_synchronous";
# The test requires network but check if it builds.
meta = {
inherit (getdns.meta) homepage license platforms;
description = "Nim wrapper over the getdns library";
maintainers = with lib.maintainers; [ ehmry ];
};
}
|