mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-29 09:04:17 +00:00
37 lines
876 B
Nix
37 lines
876 B
Nix
{
|
|
lib,
|
|
fetchFromGitea,
|
|
buildGoModule,
|
|
}:
|
|
buildGoModule rec {
|
|
pname = "nodeinfo";
|
|
version = "0.3.2";
|
|
vendorHash = "sha256-4nHdz/Js8xBUMiH+hH+hSYP25cB4yHbe+QVk0RMqLgc=";
|
|
|
|
src = fetchFromGitea {
|
|
domain = "codeberg.org";
|
|
owner = "thefederationinfo";
|
|
repo = "nodeinfo-go";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-NNrMv4AS7ybuJfTgs+p61btSIxo+iMvzH7Y5ct46Dag=";
|
|
};
|
|
|
|
modRoot = "./cli";
|
|
tags = [ "extension" ];
|
|
ldflags = [
|
|
"-s"
|
|
"-w"
|
|
];
|
|
|
|
CGO_ENABLED = 0;
|
|
|
|
meta = {
|
|
mainProgram = "nodeinfo";
|
|
description = "Command line tool to query nodeinfo based on a given domain";
|
|
homepage = "https://codeberg.org/thefederationinfo/nodeinfo-go";
|
|
changelog = "https://codeberg.org/thefederationinfo/nodeinfo-go/releases/tag/v${version}";
|
|
license = lib.licenses.mit;
|
|
maintainers = [ lib.maintainers._6543 ];
|
|
};
|
|
}
|