2020-02-27 13:29:12 +00:00
|
|
|
{ lib, buildGoPackage, fetchFromGitHub, installShellFiles }:
|
2017-11-25 14:24:52 +00:00
|
|
|
|
|
|
|
buildGoPackage rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "kompose";
|
2020-02-27 13:29:12 +00:00
|
|
|
version = "1.21.0";
|
2017-11-25 14:24:52 +00:00
|
|
|
|
|
|
|
goPackagePath = "github.com/kubernetes/kompose";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
rev = "v${version}";
|
|
|
|
owner = "kubernetes";
|
|
|
|
repo = "kompose";
|
2020-02-27 13:29:12 +00:00
|
|
|
sha256 = "15a1alf6ywwfc4z5kdcnv64fp3cfy3qrcw62ny6xyn1kh1w24vkh";
|
2017-11-25 14:24:52 +00:00
|
|
|
};
|
|
|
|
|
2020-01-31 10:29:24 +00:00
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
postInstall = ''
|
2020-04-26 03:16:51 +00:00
|
|
|
for shell in bash zsh; do
|
|
|
|
$bin/bin/kompose completion $shell > kompose.$shell
|
|
|
|
installShellCompletion kompose.$shell
|
|
|
|
done
|
2020-01-31 10:29:24 +00:00
|
|
|
'';
|
|
|
|
|
2020-02-27 13:29:12 +00:00
|
|
|
meta = with lib; {
|
2017-11-25 14:24:52 +00:00
|
|
|
description = "A tool to help users who are familiar with docker-compose move to Kubernetes";
|
2020-02-27 13:29:12 +00:00
|
|
|
homepage = "https://kompose.io";
|
2017-11-25 14:24:52 +00:00
|
|
|
license = licenses.asl20;
|
2019-03-23 23:55:09 +00:00
|
|
|
maintainers = with maintainers; [ thpham vdemeester ];
|
2017-11-25 14:24:52 +00:00
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|