mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-17 11:13:30 +00:00
25 lines
681 B
Nix
25 lines
681 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 ];
|
|
|
|
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 ];
|
|
};
|
|
}
|