Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 41 lines 1.0 kB view raw
1{ 2 buildGoModule, 3 fetchFromGitHub, 4 lib, 5 nixosTests, 6}: 7 8buildGoModule rec { 9 pname = "blocky"; 10 version = "0.26.2"; 11 12 src = fetchFromGitHub { 13 owner = "0xERR0R"; 14 repo = "blocky"; 15 rev = "v${version}"; 16 hash = "sha256-yo21f12BLINXb8HWdR3ZweV5+cTZN07kxCxO1FMJq/4="; 17 }; 18 19 # needs network connection and fails at 20 # https://github.com/0xERR0R/blocky/blob/development/resolver/upstream_resolver_test.go 21 doCheck = false; 22 23 vendorHash = "sha256-cIDKUzOAs6XsyuUbnR2MRIeH3LI4QuohUZovh/DVJzA="; 24 25 ldflags = [ 26 "-s" 27 "-w" 28 "-X github.com/0xERR0R/blocky/util.Version=${version}" 29 ]; 30 31 passthru.tests = { inherit (nixosTests) blocky; }; 32 33 meta = with lib; { 34 description = "Fast and lightweight DNS proxy as ad-blocker for local network with many features"; 35 homepage = "https://0xerr0r.github.io/blocky"; 36 changelog = "https://github.com/0xERR0R/blocky/releases"; 37 license = licenses.asl20; 38 maintainers = with maintainers; [ ratsclub ]; 39 mainProgram = "blocky"; 40 }; 41}