summary refs log tree commit diff
path: root/pkgs/development/tools
diff options
context:
space:
mode:
authorSandro <sandro.jaeckel@gmail.com>2021-07-01 00:34:06 +0200
committerGitHub <noreply@github.com>2021-07-01 00:34:06 +0200
commitbc21b7a9ed8fc4cb10f751d3be198374c03becd3 (patch)
treec62a9329bda62b04bb07cccc037f2983868a3407 /pkgs/development/tools
parentcc9e99b9d925630a71b82154c883428a463610f4 (diff)
parentd0f4bb9cf8ae74e3ad99e6e29a36eebb5dcb7745 (diff)
downloadnixpkgs-bc21b7a9ed8fc4cb10f751d3be198374c03becd3.tar
nixpkgs-bc21b7a9ed8fc4cb10f751d3be198374c03becd3.tar.gz
nixpkgs-bc21b7a9ed8fc4cb10f751d3be198374c03becd3.tar.bz2
nixpkgs-bc21b7a9ed8fc4cb10f751d3be198374c03becd3.tar.lz
nixpkgs-bc21b7a9ed8fc4cb10f751d3be198374c03becd3.tar.xz
nixpkgs-bc21b7a9ed8fc4cb10f751d3be198374c03becd3.tar.zst
nixpkgs-bc21b7a9ed8fc4cb10f751d3be198374c03becd3.zip
Merge pull request #128593 from starcraft66/kustomize_3
Diffstat (limited to 'pkgs/development/tools')
-rw-r--r--pkgs/development/tools/kustomize/3.nix40
1 files changed, 40 insertions, 0 deletions
diff --git a/pkgs/development/tools/kustomize/3.nix b/pkgs/development/tools/kustomize/3.nix
new file mode 100644
index 00000000000..aa99256faa8
--- /dev/null
+++ b/pkgs/development/tools/kustomize/3.nix
@@ -0,0 +1,40 @@
+{ lib, buildGoModule, fetchFromGitHub }:
+
+buildGoModule rec {
+  pname = "kustomize_3";
+  version = "3.10.0";
+  # rev is the commit of the tag, mainly for kustomize version command output
+  rev = "602ad8aa98e2e17f6c9119e027a09757e63c8bec";
+
+  ldflags = let t = "sigs.k8s.io/kustomize/api/provenance"; in [
+    "-s -w"
+    "-X ${t}.version=${version}"
+    "-X ${t}.gitCommit=${rev}"
+  ];
+
+  src = fetchFromGitHub {
+    owner = "kubernetes-sigs";
+    repo = "kustomize";
+    rev = "kustomize/v${version}";
+    sha256 = "sha256-ESIykbAKXdv8zM9be0zEJ71rBAzZby0aTg25NlCsIOM=";
+  };
+
+  doCheck = true;
+
+  # avoid finding test and development commands
+  sourceRoot = "source/kustomize";
+
+  vendorSha256 = "sha256-xLeetcmzvpILLLMhMx7oahWLxguFjG3qbYpeeWpFUlw=";
+
+  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;
+    maintainers = with maintainers; [ carlosdagos vdemeester zaninime Chili-Man saschagrunert ];
+  };
+}