chezmoi: 2.56.0 -> 2.57.0 (#372077)
[NixPkgs.git] / pkgs / by-name / vu / vuls / package.nix
blobf36d5cfed16833b6ea155a4283ec0751b0781896
2   lib,
3   buildGoModule,
4   fetchFromGitHub,
5 }:
7 buildGoModule rec {
8   pname = "vuls";
9   version = "0.28.1";
11   src = fetchFromGitHub {
12     owner = "future-architect";
13     repo = "vuls";
14     tag = "v${version}";
15     hash = "sha256-mrptQSTxTdste6UgbkAm3aqgpYfaoOykHX0eYOTojgA=";
16     fetchSubmodules = true;
17   };
19   vendorHash = "sha256-KufQPVnNRoyaHiuVaVIjwifh5CsoCoF7CrqvBKcG7kA=";
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   ];
28   postFixup = ''
29     mv $out/bin/cmd $out/bin/trivy-to-vuls
30   '';
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   };