nixpkgs/pkgs/development/tools/license-scanner/default.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

28 lines
766 B
Nix

{ lib
, buildGoModule
, fetchFromGitHub
}:
buildGoModule rec {
pname = "license-scanner";
version = "0.11.0";
src = fetchFromGitHub {
owner = "CycloneDX";
repo = "license-scanner";
rev = "refs/tags/v${version}";
hash = "sha256-2KUaVDAZxMwZ3AAMEUmRiuvenPSFliUp6rZCZrVTDps=";
};
vendorHash = "sha256-7xa2tdCDCXkOZCLL8YPtO7i1VqD61Mow7un0690I8mM=";
meta = with lib; {
description = "Utility that provides an API and CLI to identify licenses and legal terms";
mainProgram = "license-scanner";
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 ];
};
}