mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-03 04:13:01 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
37 lines
994 B
Nix
37 lines
994 B
Nix
{ buildGoModule
|
|
, fetchFromGitHub
|
|
, lib
|
|
, nixosTests
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "blocky";
|
|
version = "0.24";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "0xERR0R";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
hash = "sha256-K+Zdb6l2WUhxVm/gi9U2vVR69bxr2ntLyIrkwTuc0Do=";
|
|
};
|
|
|
|
# needs network connection and fails at
|
|
# https://github.com/0xERR0R/blocky/blob/development/resolver/upstream_resolver_test.go
|
|
doCheck = false;
|
|
|
|
vendorHash = "sha256-I4UXTynulsRuu9U8tsLbPQO1MMPfUC5dAZE420sW1sU=";
|
|
|
|
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";
|
|
};
|
|
}
|