aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/applications/networking/cluster/kompose/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/applications/networking/cluster/kompose/default.nix')
-rw-r--r--nixpkgs/pkgs/applications/networking/cluster/kompose/default.nix17
1 files changed, 12 insertions, 5 deletions
diff --git a/nixpkgs/pkgs/applications/networking/cluster/kompose/default.nix b/nixpkgs/pkgs/applications/networking/cluster/kompose/default.nix
index 1a14e1ed273..09a69f4b80e 100644
--- a/nixpkgs/pkgs/applications/networking/cluster/kompose/default.nix
+++ b/nixpkgs/pkgs/applications/networking/cluster/kompose/default.nix
@@ -1,8 +1,8 @@
-{ stdenv, buildGoPackage, fetchFromGitHub }:
+{ lib, buildGoPackage, fetchFromGitHub, installShellFiles }:
buildGoPackage rec {
pname = "kompose";
- version = "1.18.0";
+ version = "1.21.0";
goPackagePath = "github.com/kubernetes/kompose";
@@ -10,12 +10,19 @@ buildGoPackage rec {
rev = "v${version}";
owner = "kubernetes";
repo = "kompose";
- sha256 = "1hb4bs710n9fghphhfakwg42wjscf136dcr05zwwfg7iyqx2cipc";
+ sha256 = "15a1alf6ywwfc4z5kdcnv64fp3cfy3qrcw62ny6xyn1kh1w24vkh";
};
- meta = with stdenv.lib; {
+ nativeBuildInputs = [ installShellFiles ];
+ postInstall = ''
+ $bin/bin/kompose completion bash > kompose.bash
+ $bin/bin/kompose completion zsh > kompose.zsh
+ installShellCompletion kompose.{bash,zsh}
+ '';
+
+ meta = with lib; {
description = "A tool to help users who are familiar with docker-compose move to Kubernetes";
- homepage = https://github.com/kubernetes/kompose;
+ homepage = "https://kompose.io";
license = licenses.asl20;
maintainers = with maintainers; [ thpham vdemeester ];
platforms = platforms.unix;