nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildGoModule,
4 fetchFromGitHub,
5}:
6
7buildGoModule {
8 pname = "hosts-bl";
9 version = "0-unstable-2024-11-17";
10
11 src = fetchFromGitHub {
12 owner = "ScriptTiger";
13 repo = "Hosts-BL";
14 rev = "b3ac0a50fce8e714e754a17e6a11f8709386782c";
15 sha256 = "sha256-w+4dEWwFMjBbeJPOqMrzLBBzPYh/V5SfV2BMrI0p3nw=";
16 };
17
18 postPatch = ''
19 go mod init github.com/ScriptTiger/Hosts-BL
20 '';
21
22 vendorHash = null;
23
24 meta = {
25 homepage = "https://github.com/ScriptTiger/Hosts-BL";
26 description = "Simple tool to handle hosts file black lists";
27 mainProgram = "Hosts-BL";
28 maintainers = [ lib.maintainers.puffnfresh ];
29 platforms = lib.platforms.unix;
30 license = lib.licenses.mit;
31 };
32}