diff options
author | Jan Tojnar <jtojnar@gmail.com> | 2022-12-25 01:30:47 +0100 |
---|---|---|
committer | Jan Tojnar <jtojnar@gmail.com> | 2022-12-25 01:30:47 +0100 |
commit | 72c37eddec230b691dee4a6c7aed17028a617ad8 (patch) | |
tree | caf36a6707f07dff9fce175e4fc0f6dd8260a24c /pkgs/development/nim-packages | |
parent | 4b4777638c424fa29224330d078b065503806aad (diff) | |
parent | 3fc0495cdc63449e1699db7b377962fb4ae55190 (diff) |
Merge branch 'staging-next' into staging
Diffstat (limited to 'pkgs/development/nim-packages')
-rw-r--r-- | pkgs/development/nim-packages/getdns/default.nix | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/pkgs/development/nim-packages/getdns/default.nix b/pkgs/development/nim-packages/getdns/default.nix new file mode 100644 index 0000000000000..035770da98be0 --- /dev/null +++ b/pkgs/development/nim-packages/getdns/default.nix @@ -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 ]; + }; +} |