2020-06-15 10:51:21 +00:00
|
|
|
{ lib, go, buildGoModule, fetchFromGitHub }:
|
2019-09-13 23:40:58 +00:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "qbec";
|
2022-03-06 15:42:53 +00:00
|
|
|
version = "0.15.2";
|
2019-09-13 23:40:58 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "splunk";
|
|
|
|
repo = "qbec";
|
|
|
|
rev = "v${version}";
|
2022-03-06 15:42:53 +00:00
|
|
|
sha256 = "sha256-js/UjnNYRW7s3b4TeprhmBe4cDLDYDrMeLtpASI9aN4=";
|
2019-09-13 23:40:58 +00:00
|
|
|
};
|
|
|
|
|
2022-03-06 15:42:53 +00:00
|
|
|
vendorSha256 = "sha256-oEbKk9cMbI0ZWXrfM8Y19OF/A75mwHl0C/PJx0oTOBo=";
|
2019-09-13 23:40:58 +00:00
|
|
|
|
2020-08-04 00:26:27 +00:00
|
|
|
doCheck = false;
|
|
|
|
|
2021-08-23 04:55:51 +00:00
|
|
|
ldflags = [
|
2021-08-26 06:45:51 +00:00
|
|
|
"-s" "-w"
|
|
|
|
"-X github.com/splunk/qbec/internal/commands.version=${version}"
|
|
|
|
"-X github.com/splunk/qbec/internal/commands.commit=${src.rev}"
|
|
|
|
"-X github.com/splunk/qbec/internal/commands.goVersion=${lib.getVersion go}"
|
2021-08-23 04:55:51 +00:00
|
|
|
];
|
2020-06-15 10:51:21 +00:00
|
|
|
|
2020-03-27 07:33:21 +00:00
|
|
|
meta = with lib; {
|
2019-09-13 23:40:58 +00:00
|
|
|
description = "Configure kubernetes objects on multiple clusters using jsonnet https://qbec.io";
|
2020-03-14 12:17:01 +00:00
|
|
|
homepage = "https://github.com/splunk/qbec";
|
2019-09-13 23:40:58 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ groodt ];
|
|
|
|
};
|
2020-06-15 10:51:21 +00:00
|
|
|
}
|