1{
2 lib,
3 fetchFromGitHub,
4 php,
5}:
6
7let
8 version = "5.2.0";
9in
10php.buildComposerWithPlugin {
11 pname = "cyclonedx/cyclonedx-php-composer";
12 inherit version;
13
14 src = fetchFromGitHub {
15 owner = "CycloneDX";
16 repo = "cyclonedx-php-composer";
17 rev = "v${version}";
18 hash = "sha256-0fb1QiuVJqcB7CAEyB0y60/O9iiibT06mccZYe52dFQ=";
19 };
20
21 composerLock = ./composer.lock;
22 vendorHash = "sha256-QPlHWXXksetNSsv3olmCtPA/VsFVPV09rYQEsPezZoE=";
23
24 meta = {
25 changelog = "https://github.com/CycloneDX/cyclonedx-php-composer/releases/tag/v${version}";
26 description = "Composer plugin that facilitates the creation of a CycloneDX Software Bill of Materials (SBOM) from PHP Composer projects";
27 homepage = "https://github.com/CycloneDX/cyclonedx-php-composer";
28 license = lib.licenses.asl20;
29 mainProgram = "composer";
30 maintainers = with lib.maintainers; [ drupol ];
31 platforms = lib.platforms.all;
32 };
33}