mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-11 16:23:26 +00:00
90f3936860
Diff: https://github.com/xeol-io/xeol/compare/refs/tags/v0.9.15...v0.10.0 Changelog: https://github.com/xeol-io/xeol/releases/tag/v0.10.0
42 lines
980 B
Nix
42 lines
980 B
Nix
{
|
|
lib,
|
|
buildGoModule,
|
|
fetchFromGitHub,
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "xeol";
|
|
version = "0.10.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "xeol-io";
|
|
repo = "xeol";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-5QlHfchVRFNpU/sBTS9AWOENU86jBatF6KI97NoJa50=";
|
|
};
|
|
|
|
vendorHash = "sha256-MLNUmJOpgKkIe5NUWYMA5avVvt6QLit0i4hpoaadcrs=";
|
|
|
|
proxyVendor = true;
|
|
|
|
subPackages = [ "cmd/xeol/" ];
|
|
|
|
ldflags = [
|
|
"-w"
|
|
"-s"
|
|
"-X=main.version=${version}"
|
|
"-X=main.gitCommit=${src.rev}"
|
|
"-X=main.buildDate=1970-01-01T00:00:00Z"
|
|
"-X=main.gitDescription=${src.rev}"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Scanner for end-of-life (EOL) software and dependencies in container images, filesystems, and SBOMs";
|
|
homepage = "https://github.com/xeol-io/xeol";
|
|
changelog = "https://github.com/xeol-io/xeol/releases/tag/v${version}";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ fab ];
|
|
mainProgram = "xeol";
|
|
};
|
|
}
|