Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 36 lines 873 B view raw
1{ 2 lib, 3 buildGoModule, 4 fetchFromGitHub, 5}: 6 7buildGoModule rec { 8 pname = "cyclonedx-gomod"; 9 version = "1.9.0"; 10 11 src = fetchFromGitHub { 12 owner = "CycloneDX"; 13 repo = "cyclonedx-gomod"; 14 tag = "v${version}"; 15 hash = "sha256-iD8mDqQl18ufJBoRkpqYZc+I259HfnFNp29guvBtGDk="; 16 }; 17 18 vendorHash = "sha256-Yw+lci0vBDWeJVjOX83LKNb7afcsIK/AC5GZPRSzcdo="; 19 20 ldflags = [ 21 "-w" 22 "-s" 23 ]; 24 25 # Tests require network access and cyclonedx executable 26 doCheck = false; 27 28 meta = with lib; { 29 description = "Tool to create CycloneDX Software Bill of Materials (SBOM) from Go modules"; 30 homepage = "https://github.com/CycloneDX/cyclonedx-gomod"; 31 changelog = "https://github.com/CycloneDX/cyclonedx-gomod/releases/tag/v${version}"; 32 license = licenses.asl20; 33 maintainers = with maintainers; [ fab ]; 34 mainProgram = "cyclonedx-gomod"; 35 }; 36}