mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-23 22:23:15 +00:00
26 lines
699 B
Nix
26 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 ];
|
|
};
|
|
}
|