3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/networking/cluster/kubecfg/default.nix
Tom Wieczorek b862ed9107
kubecfg: add version to ldflags
So that the version subcommand will list the actual version, instead of
just "(dev build)".
2021-10-20 10:37:40 +02:00

28 lines
664 B
Nix

{ lib, buildGoPackage, fetchFromGitHub, ... }:
let version = "0.21.0"; in
buildGoPackage {
pname = "kubecfg";
inherit version;
src = fetchFromGitHub {
owner = "bitnami";
repo = "kubecfg";
rev = "v${version}";
sha256 = "sha256-Wu7+Xmb7ha3OG37DzLg2+/Sr9hB5oD3OIkC9h9Fa4QA=";
};
goPackagePath = "github.com/bitnami/kubecfg";
ldflags = [ "-X main.version=v${version}" ];
meta = {
description = "A tool for managing Kubernetes resources as code";
homepage = "https://github.com/bitnami/kubecfg";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ benley ];
platforms = lib.platforms.unix;
};
}