2022-01-25 03:40:12 +00:00
|
|
|
{ buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
, lib
|
2022-02-10 22:44:18 +00:00
|
|
|
, nixosTests
|
2022-01-25 03:40:12 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "blocky";
|
2022-11-13 22:25:46 +00:00
|
|
|
version = "0.20";
|
2022-01-25 03:40:12 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "0xERR0R";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2022-11-13 22:25:46 +00:00
|
|
|
sha256 = "sha256-l2GhqJit/+WpNDICD/NUzCAGrKrTNHzEzgpF9k3+DLk=";
|
2022-01-25 03:40:12 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
# needs network connection and fails at
|
|
|
|
# https://github.com/0xERR0R/blocky/blob/development/resolver/upstream_resolver_test.go
|
|
|
|
doCheck = false;
|
|
|
|
|
2022-11-13 22:25:46 +00:00
|
|
|
vendorSha256 = "sha256-CS8+tsE5dptG9gF46OFoJGzn1FnfjekXLTLrpwIQdFQ=";
|
2022-01-25 03:40:12 +00:00
|
|
|
|
2022-11-09 16:26:46 +00:00
|
|
|
ldflags = [ "-s" "-w" "-X github.com/0xERR0R/blocky/util.Version=${version}" ];
|
|
|
|
|
2022-01-25 03:40:12 +00:00
|
|
|
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 ];
|
|
|
|
};
|
2022-02-10 22:44:18 +00:00
|
|
|
|
|
|
|
passthru.tests = { inherit (nixosTests) blocky; };
|
2022-01-25 03:40:12 +00:00
|
|
|
}
|