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";
|
2023-04-02 01:05:17 +00:00
|
|
|
version = "0.21";
|
2022-01-25 03:40:12 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "0xERR0R";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2023-04-02 01:05:17 +00:00
|
|
|
sha256 = "sha256-+88QMASMEY1pJuejFUqqW1Ky7TpoSwCzUy1oueL7FKU=";
|
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;
|
|
|
|
|
2023-04-02 01:05:17 +00:00
|
|
|
vendorSha256 = "sha256-EsANifwaEi5PdY0Y2QZjD55sZqsqYWrC5Vh4uxpTs5A=";
|
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}" ];
|
|
|
|
|
2023-04-02 01:05:17 +00:00
|
|
|
passthru.tests = { inherit (nixosTests) blocky; };
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|