Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
35 lines
895 B
Nix
35 lines
895 B
Nix
{
|
|
lib,
|
|
buildGoModule,
|
|
fetchFromGitHub,
|
|
}:
|
|
|
|
buildGoModule (finalAttrs: {
|
|
pname = "cf-hero";
|
|
version = "1.0.4";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "musana";
|
|
repo = "CF-Hero";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-n0kcapHBz6Dap6KKJByCwBZmXmcO/aK88X78Yit6rx4=";
|
|
};
|
|
|
|
vendorHash = "sha256-Yf+iZ3UIpP9EtOWW1jh3h3zTFK1D7mcOh113Q4fbAhA=";
|
|
|
|
ldflags = [
|
|
"-s"
|
|
"-w"
|
|
];
|
|
|
|
meta = {
|
|
description = "Tool that uses multiple data sources to discover the origin IP addresses of Cloudflare-protected web applications";
|
|
homepage = "https://github.com/musana/CF-Hero";
|
|
changelog = "https://github.com/musana/CF-Hero/releases/tag/${finalAttrs.src.tag}";
|
|
# No licensing details present, https://github.com/musana/CF-Hero/issues/16
|
|
license = lib.licenses.unfree;
|
|
maintainers = with lib.maintainers; [ fab ];
|
|
mainProgram = "cf-hero";
|
|
};
|
|
})
|