summary refs log tree commit diff
path: root/pkgs/applications/networking/cluster/kompose/default.nix
blob: 09a69f4b80e255fd867414712766a5012091d613 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{ lib, buildGoPackage, fetchFromGitHub, installShellFiles }:

buildGoPackage rec {
  pname = "kompose";
  version = "1.21.0";

  goPackagePath = "github.com/kubernetes/kompose";

  src = fetchFromGitHub {
    rev = "v${version}";
    owner = "kubernetes";
    repo = "kompose";
    sha256 = "15a1alf6ywwfc4z5kdcnv64fp3cfy3qrcw62ny6xyn1kh1w24vkh";
  };

  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://kompose.io";
    license = licenses.asl20;
    maintainers = with maintainers; [ thpham vdemeester ];
    platforms = platforms.unix;
  };
}