1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/applications/networking/cluster/kompose/default.nix

31 lines
856 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 = ''
$bin/bin/kompose completion bash > kompose.bash
$bin/bin/kompose completion zsh > kompose.zsh
installShellCompletion kompose.{bash,zsh}
'';
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;
};
}