Files

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

42 lines
1019 B
Nix
Raw Permalink Normal View History

2025-10-09 14:15:47 +02:00
{
buildGoModule,
fetchFromGitHub,
lib,
nixosTests,
}:
buildGoModule rec {
pname = "blocky";
version = "0.26.2";
src = fetchFromGitHub {
owner = "0xERR0R";
repo = "blocky";
rev = "v${version}";
hash = "sha256-yo21f12BLINXb8HWdR3ZweV5+cTZN07kxCxO1FMJq/4=";
};
# needs network connection and fails at
# https://github.com/0xERR0R/blocky/blob/development/resolver/upstream_resolver_test.go
doCheck = false;
vendorHash = "sha256-cIDKUzOAs6XsyuUbnR2MRIeH3LI4QuohUZovh/DVJzA=";
ldflags = [
"-s"
"-w"
"-X github.com/0xERR0R/blocky/util.Version=${version}"
];
passthru.tests = { inherit (nixosTests) blocky; };
meta = with lib; {
description = "Fast and lightweight DNS proxy as ad-blocker for local network with many features";
homepage = "https://0xerr0r.github.io/blocky";
changelog = "https://github.com/0xERR0R/blocky/releases";
license = licenses.asl20;
maintainers = with maintainers; [ ratsclub ];
mainProgram = "blocky";
};
}