mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-27 22:03:54 +03:00
nimPackages.getdns: init at 20221222
This commit is contained in:
parent
819ddb2d65
commit
bacf529356
@ -1,7 +1,7 @@
|
||||
# Getdns and Stubby are released together, see https://getdnsapi.net/releases/
|
||||
|
||||
{ lib, stdenv, fetchurl, cmake, darwin, doxygen, libidn2, libyaml, openssl
|
||||
, systemd, unbound, yq }:
|
||||
, systemd, unbound, yq, nimPackages }:
|
||||
let
|
||||
metaCommon = with lib; {
|
||||
maintainers = with maintainers; [ leenaars ehmry ];
|
||||
@ -38,6 +38,8 @@ in rec {
|
||||
|
||||
postInstall = "rm -r $out/share/doc";
|
||||
|
||||
passthru.tests.nim = nimPackages.getdns;
|
||||
|
||||
meta = with lib;
|
||||
metaCommon // {
|
||||
description = "A modern asynchronous DNS API";
|
||||
|
25
pkgs/development/nim-packages/getdns/default.nix
Normal file
25
pkgs/development/nim-packages/getdns/default.nix
Normal file
@ -0,0 +1,25 @@
|
||||
{ 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 ];
|
||||
};
|
||||
}
|
@ -26,6 +26,9 @@ lib.makeScope newScope (self:
|
||||
|
||||
frosty = callPackage ../development/nim-packages/frosty { };
|
||||
|
||||
getdns = callPackage ../development/nim-packages/getdns {
|
||||
inherit (pkgs) getdns; };
|
||||
|
||||
hts-nim = callPackage ../development/nim-packages/hts-nim { };
|
||||
|
||||
jester = callPackage ../development/nim-packages/jester { };
|
||||
|
Loading…
Reference in New Issue
Block a user