about summary refs log tree commit diff
path: root/pkgs/applications/networking/cluster
diff options
context:
space:
mode:
authorzowoq <59103226+zowoq@users.noreply.github.com>2020-01-31 20:29:24 +1000
committerzowoq <59103226+zowoq@users.noreply.github.com>2020-01-31 20:29:24 +1000
commitc508408268ef2083c39664b7753640fdf3472b70 (patch)
tree25fc4ddd9941d7faf9ff1a32e4841161a654f304 /pkgs/applications/networking/cluster
parenta21c2fa3ea2b88e698db6fc151d9c7259ae14d96 (diff)
downloadnixlib-c508408268ef2083c39664b7753640fdf3472b70.tar
nixlib-c508408268ef2083c39664b7753640fdf3472b70.tar.gz
nixlib-c508408268ef2083c39664b7753640fdf3472b70.tar.bz2
nixlib-c508408268ef2083c39664b7753640fdf3472b70.tar.lz
nixlib-c508408268ef2083c39664b7753640fdf3472b70.tar.xz
nixlib-c508408268ef2083c39664b7753640fdf3472b70.tar.zst
nixlib-c508408268ef2083c39664b7753640fdf3472b70.zip
kompose: 1.18.0 -> 1.20.0
https://github.com/kubernetes/kompose/blob/v1.20.0/CHANGELOG.md#v1200-2019-12-23
Diffstat (limited to 'pkgs/applications/networking/cluster')
-rw-r--r--pkgs/applications/networking/cluster/kompose/default.nix13
1 files changed, 10 insertions, 3 deletions
diff --git a/pkgs/applications/networking/cluster/kompose/default.nix b/pkgs/applications/networking/cluster/kompose/default.nix
index 1a14e1ed273e..6b19cb8c43c3 100644
--- a/pkgs/applications/networking/cluster/kompose/default.nix
+++ b/pkgs/applications/networking/cluster/kompose/default.nix
@@ -1,8 +1,8 @@
-{ stdenv, buildGoPackage, fetchFromGitHub }:
+{ stdenv, buildGoPackage, fetchFromGitHub, installShellFiles }:
 
 buildGoPackage rec {
   pname = "kompose";
-  version = "1.18.0";
+  version = "1.20.0";
 
   goPackagePath = "github.com/kubernetes/kompose";
 
@@ -10,9 +10,16 @@ buildGoPackage rec {
     rev = "v${version}";
     owner = "kubernetes";
     repo = "kompose";
-    sha256 = "1hb4bs710n9fghphhfakwg42wjscf136dcr05zwwfg7iyqx2cipc";
+    sha256 = "1zgxm3zcxapav4jxh1r597rmxmlxcgns1l8w632ch7d90x5ihvll";
   };
 
+  nativeBuildInputs = [ installShellFiles ];
+  postInstall = ''
+    $bin/bin/kompose completion bash > kompose.bash
+    $bin/bin/kompose completion zsh > kompose.zsh
+    installShellCompletion kompose.{bash,zsh}
+  '';
+
   meta = with stdenv.lib; {
     description = "A tool to help users who are familiar with docker-compose move to Kubernetes";
     homepage = https://github.com/kubernetes/kompose;