2018-07-26 03:56:44 +01:00
|
|
|
{ lib, stdenv, buildGoPackage, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoPackage rec {
|
|
|
|
name = "kustomize-${version}";
|
2019-02-15 08:47:35 +00:00
|
|
|
version = "2.0.1";
|
|
|
|
# rev is the 2.0.1 commit, mainly for kustomize version command output
|
|
|
|
rev = "ce7e5ee2c30cc5856fea01fe423cf167f2a2d0c3";
|
2018-07-26 03:56:44 +01:00
|
|
|
|
2018-09-28 18:58:56 +01:00
|
|
|
goPackagePath = "sigs.k8s.io/kustomize";
|
2019-02-15 08:47:35 +00:00
|
|
|
goDeps = ./deps.nix;
|
2018-09-28 18:58:56 +01:00
|
|
|
|
|
|
|
buildFlagsArray = let t = "${goPackagePath}/pkg/commands"; in ''
|
|
|
|
-ldflags=
|
|
|
|
-s -X ${t}.kustomizeVersion=${version}
|
|
|
|
-X ${t}.gitCommit=${rev}
|
|
|
|
-X ${t}.buildDate=unknow
|
|
|
|
'';
|
2018-07-26 03:56:44 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2019-02-15 08:47:35 +00:00
|
|
|
sha256 = "1ljllx2gd329lnq6mdsgh8zzr517ji80b0j21pgr23y0xmd43ijf";
|
2018-07-26 03:56:44 +01:00
|
|
|
rev = "v${version}";
|
|
|
|
repo = "kustomize";
|
|
|
|
owner = "kubernetes-sigs";
|
|
|
|
};
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Customization of kubernetes YAML configurations";
|
|
|
|
longDescription = ''
|
|
|
|
kustomize lets you customize raw, template-free YAML files for
|
|
|
|
multiple purposes, leaving the original YAML untouched and usable
|
|
|
|
as is.
|
|
|
|
'';
|
|
|
|
homepage = https://github.com/kubernetes-sigs/kustomize;
|
|
|
|
license = licenses.asl20;
|
2019-02-15 08:47:35 +00:00
|
|
|
maintainers = with maintainers; [ carlosdagos vdemeester periklis zaninime ];
|
2018-07-26 03:56:44 +01:00
|
|
|
};
|
|
|
|
}
|