nixpkgs/pkgs/applications/networking/cluster/kompose/default.nix

31 lines
883 B
Nix
Raw Normal View History

{ stdenv, buildGoPackage, fetchFromGitHub, installShellFiles }:
2017-11-25 06:24:52 -08:00
buildGoPackage rec {
pname = "kompose";
version = "1.20.0";
2017-11-25 06:24:52 -08:00
goPackagePath = "github.com/kubernetes/kompose";
src = fetchFromGitHub {
rev = "v${version}";
owner = "kubernetes";
repo = "kompose";
sha256 = "1zgxm3zcxapav4jxh1r597rmxmlxcgns1l8w632ch7d90x5ihvll";
2017-11-25 06:24:52 -08:00
};
nativeBuildInputs = [ installShellFiles ];
postInstall = ''
$bin/bin/kompose completion bash > kompose.bash
$bin/bin/kompose completion zsh > kompose.zsh
installShellCompletion kompose.{bash,zsh}
'';
2017-11-25 06:24:52 -08:00
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;
license = licenses.asl20;
maintainers = with maintainers; [ thpham vdemeester ];
2017-11-25 06:24:52 -08:00
platforms = platforms.unix;
};
}