Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, buildGoModule, fetchFromGitHub }: 2 3buildGoModule { 4 pname = "cidrgrep"; 5 version = "unstable-2020-11-17"; 6 7 src = fetchFromGitHub { 8 owner = "tomdoherty"; 9 repo = "cidrgrep"; 10 rev = "8ad5af533e8dc33ea18ff19b7c6a41550748fe0e"; 11 hash = "sha256-Bp1cST6/8ppvpgNxjUpwL498C9vTJmoWOKLJgmWqfEs="; 12 }; 13 14 vendorSha256 = null; 15 16 postInstall = '' 17 mv $out/bin/cmd $out/bin/cidrgrep 18 ''; 19 20 meta = { 21 description = "Like grep but for IPv4 CIDRs"; 22 license = lib.licenses.mit; 23 maintainers = with lib.maintainers; [ das_j ]; 24 }; 25}