blob: 2f55325f6eff43a681af01ab62992b7593a0044c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
{ buildGoModule
, fetchFromGitHub
, lib
}:
buildGoModule rec {
pname = "yor";
version = "0.1.190";
src = fetchFromGitHub {
owner = "bridgecrewio";
repo = pname;
rev = version;
hash = "sha256-1CofTfH7PffncLsa8Ho/fY+R6oaefUld3x84oeD5Bbo=";
};
vendorHash = "sha256-iUBajZv9BHQm0kHJGK/9FYp7nGSr7p6tlPKxugZ3BjQ=";
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 ];
};
}
|