nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 40 lines 978 B view raw
1{ 2 lib, 3 buildGoModule, 4 fetchFromGitHub, 5}: 6 7buildGoModule rec { 8 pname = "vuls"; 9 version = "0.37.0"; 10 11 src = fetchFromGitHub { 12 owner = "future-architect"; 13 repo = "vuls"; 14 tag = "v${version}"; 15 hash = "sha256-BkFFFo0+5f2OmxlleUaqsoX8gesytXGHuSwLTnTJnV0="; 16 fetchSubmodules = true; 17 }; 18 19 vendorHash = "sha256-fyuY0GbdZpBw7nbPIZqLakRwOCHQLaEeuihtkIGOzzU="; 20 21 ldflags = [ 22 "-s" 23 "-w" 24 "-X=github.com/future-architect/vuls/config.Version=${version}" 25 "-X=github.com/future-architect/vuls/config.Revision=${src.rev}-1970-01-01T00:00:00Z" 26 ]; 27 28 postFixup = '' 29 mv $out/bin/cmd $out/bin/trivy-to-vuls 30 ''; 31 32 meta = { 33 description = "Agent-less vulnerability scanner"; 34 homepage = "https://github.com/future-architect/vuls"; 35 changelog = "https://github.com/future-architect/vuls/blob/${src.rev}/CHANGELOG.md"; 36 license = lib.licenses.gpl3Only; 37 maintainers = with lib.maintainers; [ fab ]; 38 mainProgram = "vuls"; 39 }; 40}