Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, buildNimPackage, fetchFromSourcehut, pkg-config, getdns }: 2 3buildNimPackage rec { 4 pname = "getdns"; 5 version = "20221222"; 6 src = fetchFromSourcehut { 7 owner = "~ehmry"; 8 repo = pname + "-nim"; 9 rev = version; 10 hash = "sha256-y7yzY1PcodIK2kC9409FuTpLn0TsWHGiEPnrULrob+k="; 11 }; 12 13 propagatedNativeBuildInputs = [ pkg-config ]; 14 propagatedBuildInputs = [ getdns ]; 15 16 doCheck = true; 17 checkPhase = "nim c tests/test_example_synchronous"; 18 # The test requires network but check if it builds. 19 20 meta = { 21 inherit (getdns.meta) homepage license platforms; 22 description = "Nim wrapper over the getdns library"; 23 maintainers = with lib.maintainers; [ ehmry ]; 24 }; 25}