mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-29 02:13:23 +00:00
Merge pull request #90465 from groodt/groodt-qbec-ldflags
qbec: add ldflags
This commit is contained in:
commit
0a62da15c0
@ -1,4 +1,4 @@
|
||||
{ lib, buildGoModule, fetchFromGitHub }:
|
||||
{ lib, go, buildGoModule, fetchFromGitHub }:
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "qbec";
|
||||
@ -13,10 +13,18 @@ buildGoModule rec {
|
||||
|
||||
vendorSha256 = "15hbjghi2ifylg7nr85qlk0alsy97h9zj6hf5w84m76dla2bcjf3";
|
||||
|
||||
buildFlagsArray = ''
|
||||
-ldflags=
|
||||
-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}
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Configure kubernetes objects on multiple clusters using jsonnet https://qbec.io";
|
||||
homepage = "https://github.com/splunk/qbec";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ groodt ];
|
||||
};
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user