2023-04-12 12:48:02 +00:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "license-scanner";
|
2024-01-02 11:29:13 +00:00
|
|
|
version = "0.11.0";
|
2023-04-12 12:48:02 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "CycloneDX";
|
|
|
|
repo = "license-scanner";
|
|
|
|
rev = "refs/tags/v${version}";
|
2024-01-02 11:29:13 +00:00
|
|
|
hash = "sha256-2KUaVDAZxMwZ3AAMEUmRiuvenPSFliUp6rZCZrVTDps=";
|
2023-04-12 12:48:02 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
vendorHash = "sha256-7xa2tdCDCXkOZCLL8YPtO7i1VqD61Mow7un0690I8mM=";
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Utility that provides an API and CLI to identify licenses and legal terms";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "license-scanner";
|
2023-04-12 12:48:02 +00:00
|
|
|
homepage = "https://github.com/CycloneDX/license-scanner";
|
|
|
|
changelog = "https://github.com/CycloneDX/license-scanner/blob/${version}/CHANGELOG.md";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|