472aeafc57
GitOrigin-RevId: c31898adf5a8ed202ce5bea9f347b1c6871f32d1
42 lines
983 B
Nix
42 lines
983 B
Nix
{ buildGoModule
|
|
, fetchFromGitHub
|
|
, lib
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "yor";
|
|
version = "0.1.199";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "bridgecrewio";
|
|
repo = pname;
|
|
rev = version;
|
|
hash = "sha256-VQzaSWVf8n7/PHW4d0Vu1LBbPjB7EjvJrDp5w2fbl34=";
|
|
};
|
|
|
|
vendorHash = "sha256-uT/jGD4hDVes4h+mlSIT2p+C9TjxnUWsmKv9haPjjLc=";
|
|
|
|
doCheck = false;
|
|
|
|
# https://github.com/bridgecrewio/yor/blob/main/set-version.sh
|
|
preBuild = ''
|
|
cat << EOF > src/common/version.go
|
|
package common
|
|
|
|
const Version = "${version}"
|
|
EOF
|
|
'';
|
|
|
|
ldflags = [
|
|
"-s"
|
|
"-w"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Extensible auto-tagger for your IaC files. The ultimate way to link entities in the cloud back to the codified resource which created it";
|
|
homepage = "https://github.com/bridgecrewio/yor";
|
|
changelog = "https://github.com/bridgecrewio/yor/releases/tag/${version}";
|
|
license = licenses.asl20;
|
|
maintainers = [ maintainers.ivankovnatsky ];
|
|
};
|
|
}
|