depot/third_party/nixpkgs/pkgs/applications/networking/blocky/default.nix
Default email 23b612e36f Project import generated by Copybara.
GitOrigin-RevId: ae5c332cbb5827f6b1f02572496b141021de335f
2024-01-25 23:12:00 +09:00

36 lines
995 B
Nix

{ buildGoModule
, fetchFromGitHub
, lib
, nixosTests
}:
buildGoModule rec {
pname = "blocky";
version = "0.23";
src = fetchFromGitHub {
owner = "0xERR0R";
repo = pname;
rev = "v${version}";
hash = "sha256-IB5vi+nFXbV94YFtY2eMKTgzUgX8q8i8soSrso2zaD4=";
};
# needs network connection and fails at
# https://github.com/0xERR0R/blocky/blob/development/resolver/upstream_resolver_test.go
doCheck = false;
vendorHash = "sha256-h1CkvI7M1kt2Ix3D8+gDl97CFElV+0/9Eram1burOaM=";
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";
};
}