2022-01-26 04:04:25 +00:00
|
|
|
{ buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
, lib
|
2022-02-20 05:27:41 +00:00
|
|
|
, nixosTests
|
2022-01-26 04:04:25 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "blocky";
|
2022-06-26 10:26:21 +00:00
|
|
|
version = "0.19";
|
2022-01-26 04:04:25 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "0xERR0R";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2022-06-26 10:26:21 +00:00
|
|
|
sha256 = "sha256-jOOakRuiNbdCGmbaQFuHcLsHhV26jaQY+1GgDj9ocs0=";
|
2022-01-26 04:04:25 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
# needs network connection and fails at
|
|
|
|
# https://github.com/0xERR0R/blocky/blob/development/resolver/upstream_resolver_test.go
|
|
|
|
doCheck = false;
|
|
|
|
|
2022-06-26 10:26:21 +00:00
|
|
|
vendorSha256 = "sha256-fsMBL9qyhIrV6eAsqpSaNniibMdYRVBnl2KCzStvMGQ=";
|
2022-01-26 04:04:25 +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-20 05:27:41 +00:00
|
|
|
|
|
|
|
passthru.tests = { inherit (nixosTests) blocky; };
|
2022-01-26 04:04:25 +00:00
|
|
|
}
|