a3d4720129
GitOrigin-RevId: e182da8622a354d44c39b3d7a542dc12cd7baa5f
25 lines
699 B
Nix
25 lines
699 B
Nix
{ 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 ];
|
|
|
|
doCheck = true;
|
|
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 ];
|
|
};
|
|
}
|