nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 34 lines 685 B view raw
1{ 2 lib, 3 buildGoModule, 4 fetchFromGitHub, 5}: 6 7buildGoModule rec { 8 pname = "routedns"; 9 version = "0.1.51"; 10 11 src = fetchFromGitHub { 12 owner = "folbricht"; 13 repo = "routedns"; 14 rev = "v${version}"; 15 hash = "sha256-9H/l6EAbrNwD2DnweBqjmcoaJEnTH9BdGn2x/ZC3us4="; 16 }; 17 18 vendorHash = "sha256-yOYeMYAXa1jok8QwGtYsvuUGgIXEjZGo6+FiDQkZwUU="; 19 20 subPackages = [ "./cmd/routedns" ]; 21 22 ldflags = [ 23 "-s" 24 "-w" 25 ]; 26 27 meta = with lib; { 28 homepage = "https://github.com/folbricht/routedns"; 29 description = "DNS stub resolver, proxy and router"; 30 license = licenses.bsd3; 31 maintainers = with maintainers; [ jsimonetti ]; 32 mainProgram = "routedns"; 33 }; 34}