about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/tools/license-scanner/default.nix
blob: 6fcb17e4f4b24aa4bafee7efb0af60dff48828b6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{ 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 ];
  };
}