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";
|
2024-06-05 15:53:02 +00:00
|
|
|
version = "0.24";
|
2022-01-26 04:04:25 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "0xERR0R";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2024-06-05 15:53:02 +00:00
|
|
|
hash = "sha256-K+Zdb6l2WUhxVm/gi9U2vVR69bxr2ntLyIrkwTuc0Do=";
|
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;
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
vendorHash = "sha256-I4UXTynulsRuu9U8tsLbPQO1MMPfUC5dAZE420sW1sU=";
|
2022-11-21 17:40:18 +00:00
|
|
|
|
|
|
|
ldflags = [ "-s" "-w" "-X github.com/0xERR0R/blocky/util.Version=${version}" ];
|
2022-01-26 04:04:25 +00:00
|
|
|
|
2023-04-29 16:46:19 +00:00
|
|
|
passthru.tests = { inherit (nixosTests) blocky; };
|
|
|
|
|
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 ];
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "blocky";
|
2022-01-26 04:04:25 +00:00
|
|
|
};
|
|
|
|
}
|