cryptoscan: init at 1.3.0

Cryptographic Discovery Scanner

https://github.com/csnp/cryptoscan
This commit is contained in:
Fabian Affolter
2026-03-06 13:18:06 +01:00
parent bb9f54bb0e
commit f6080789f0

View File

@@ -0,0 +1,44 @@
{
lib,
buildGoModule,
fetchFromGitHub,
versionCheckHook,
}:
buildGoModule (finalAttrs: {
pname = "cryptoscan";
version = "1.3.0";
src = fetchFromGitHub {
owner = "csnp";
repo = "cryptoscan";
tag = "v${finalAttrs.version}";
hash = "sha256-VHr3ZBYzmol3malv1fXQ22bChd4JF7iATp7OhJuLc24=";
};
vendorHash = "sha256-komX1AmHt2NoF1x6xsNa2RFkfVzOXfYEMPhT0zwMxjw=";
ldflags = [
"-s"
"-X=main.version=${finalAttrs.version}"
"-X=main.commit=${finalAttrs.src.rev}"
"-X=main.date=1970-01-01T00:00:00Z"
];
nativeInstallCheckInputs = [ versionCheckHook ];
subPackages = [ "cmd/cryptoscan/" ];
doInstallCheck = true;
versionCheckProgramArg = [ "version" ];
meta = {
description = "Cryptographic Discovery Scanner";
homepage = "https://github.com/csnp/cryptoscan";
changelog = "https://github.com/csnp/cryptoscan/releases/tag/${finalAttrs.src.rev}";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ fab ];
mainProgram = "cryptoscan";
};
})