blob: c01e1c8c00417852fdf107076f8679c335f516e4 (
plain)
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
31
|
{ 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 = ''
for shell in bash zsh; do
$out/bin/kompose completion $shell > kompose.$shell
installShellCompletion kompose.$shell
done
'';
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;
};
}
|