mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-06-05 21:03:40 +00:00
cryptoscan: init at 1.3.0
Cryptographic Discovery Scanner https://github.com/csnp/cryptoscan
This commit is contained in:
44
pkgs/by-name/cr/cryptoscan/package.nix
Normal file
44
pkgs/by-name/cr/cryptoscan/package.nix
Normal 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";
|
||||
};
|
||||
})
|
||||
Reference in New Issue
Block a user