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

32 lines
849 B
Nix
Raw Normal View History

{ lib, buildGoPackage, fetchFromGitHub, installShellFiles }:
2017-11-25 14:24:52 +00:00
buildGoPackage rec {
pname = "kompose";
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";
sha256 = "15a1alf6ywwfc4z5kdcnv64fp3cfy3qrcw62ny6xyn1kh1w24vkh";
2017-11-25 14:24:52 +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
'';
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";
homepage = "https://kompose.io";
2017-11-25 14:24:52 +00:00
license = licenses.asl20;
maintainers = with maintainers; [ thpham vdemeester ];
2017-11-25 14:24:52 +00:00
platforms = platforms.unix;
};
}