rdap: modernize (#528514)

This commit is contained in:
Fabian Affolter
2026-06-06 08:39:21 +00:00
committed by GitHub
+14 -6
View File
@@ -2,31 +2,39 @@
lib,
buildGoModule,
fetchFromGitHub,
versionCheckHook,
}:
buildGoModule (finalAttrs: {
pname = "rdap";
version = "0.9.1";
vendorHash = "sha256-8b1EAnR8PkEAw9yLBqPKFeANJit0OCJG+fssAGR/iTk=";
src = fetchFromGitHub {
owner = "openrdap";
repo = "rdap";
rev = "v${finalAttrs.version}";
sha256 = "sha256-FiaUyhiwKXZ3xnFPmdxb8bpbm5eRRFNDL3duOGDnc/A=";
tag = "v${finalAttrs.version}";
hash = "sha256-FiaUyhiwKXZ3xnFPmdxb8bpbm5eRRFNDL3duOGDnc/A=";
};
vendorHash = "sha256-8b1EAnR8PkEAw9yLBqPKFeANJit0OCJG+fssAGR/iTk=";
doCheck = false;
ldflags = [
"-s"
"-w"
"-X \"github.com/openrdap/rdap.version=OpenRDAP ${finalAttrs.version}\""
"-X=github.com/openrdap/rdap.version=${finalAttrs.version}"
];
nativeInstallCheckInputs = [ versionCheckHook ];
doInstallCheck = true;
versionCheckProgramArg = [ "-h" ];
meta = {
homepage = "https://www.openrdap.org/";
description = "Command line client for the Registration Data Access Protocol (RDAP)";
homepage = "https://www.openrdap.org/";
changelog = "https://github.com/openrdap/rdap/releases/tag/v${finalAttrs.src.tag}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ sebastianblunt ];
mainProgram = "rdap";