mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-12 16:53:21 +00:00
ff1a94e523
The nixpkgs-unstable channel's programs.sqlite was used to identify packages producing exactly one binary, and these automatically added to their package definitions wherever possible.
44 lines
1005 B
Nix
44 lines
1005 B
Nix
{ lib
|
|
, fetchFromGitHub
|
|
, buildGoModule
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "slsa-verifier";
|
|
version = "2.4.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "slsa-framework";
|
|
repo = "slsa-verifier";
|
|
rev = "v${version}";
|
|
hash = "sha256-swyBDJTv6Sp65Q46QGm/N/kIfGfln+vBTYXVOI9CAOE=";
|
|
};
|
|
|
|
vendorHash = "sha256-rCGj2o59US2t/ckqXirEDgYn9dGvVSzMVcFEZosasBc=";
|
|
|
|
CGO_ENABLED = 0;
|
|
GO111MODULE = "on";
|
|
GOFLAGS = "-trimpath";
|
|
|
|
subPackages = [ "cli/slsa-verifier" ];
|
|
|
|
tags = [ "netgo" ];
|
|
|
|
ldflags = [
|
|
"-s"
|
|
"-w"
|
|
"-X sigs.k8s.io/release-utils/version.gitVersion=${version}"
|
|
];
|
|
|
|
doCheck = false;
|
|
|
|
meta = {
|
|
homepage = "https://github.com/slsa-framework/slsa-verifier";
|
|
changelog = "https://github.com/slsa-framework/slsa-verifier/releases/tag/v${version}";
|
|
description = "Verify provenance from SLSA compliant builders";
|
|
mainProgram = "slsa-verifier";
|
|
license = lib.licenses.asl20;
|
|
maintainers = with lib.maintainers; [ developer-guy mlieberman85 ];
|
|
};
|
|
}
|