depot/third_party/nixpkgs/pkgs/development/nim-packages/getdns/default.nix
Default email a3d4720129 Project import generated by Copybara.
GitOrigin-RevId: e182da8622a354d44c39b3d7a542dc12cd7baa5f
2022-12-28 22:21:41 +01:00

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 ];
};
}