mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-21 05:04:00 +00:00
4984613adb
lib/licenses: add Elastic License 2.0, drop Elastic License
46 lines
1013 B
Nix
46 lines
1013 B
Nix
{ lib
|
|
, buildGoModule
|
|
, fetchFromGitHub
|
|
, testers
|
|
, bearer
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "bearer";
|
|
version = "1.22.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "bearer";
|
|
repo = "bearer";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-nRtbWefRtV9wD4rmnbiZQa0R5JuW8Vs5NRTWBNH4ydc=";
|
|
};
|
|
|
|
vendorHash = "sha256-rvL2/YrwkKHs6fTEg3MG2uRx+ii8Hg8c2wPly9In1E8=";
|
|
|
|
subPackages = [
|
|
"cmd/bearer"
|
|
];
|
|
|
|
ldflags = [
|
|
"-s"
|
|
"-w"
|
|
"-X=github.com/bearer/bearer/cmd/bearer/build.Version=${version}"
|
|
];
|
|
|
|
passthru.tests = {
|
|
version = testers.testVersion {
|
|
package = bearer;
|
|
command = "bearer version";
|
|
};
|
|
};
|
|
|
|
meta = with lib; {
|
|
description = "Code security scanning tool (SAST) to discover, filter and prioritize security and privacy risks";
|
|
homepage = "https://github.com/bearer/bearer";
|
|
changelog = "https://github.com/Bearer/bearer/releases/tag/v${version}";
|
|
license = with licenses; [ elastic20 ];
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|