kompose: 1.21.0 -> 1.26.1

main
Aaron Jheng 2 years ago
parent 1a069f4e72
commit e40b63c1da
No known key found for this signature in database
GPG Key ID: F6A547A869D050A3
  1. 24
      pkgs/applications/networking/cluster/kompose/default.nix

@ -1,19 +1,24 @@
{ lib, buildGoPackage, fetchFromGitHub, installShellFiles }:
{ lib, buildGoModule, fetchFromGitHub, installShellFiles, testVersion, kompose }:
buildGoPackage rec {
buildGoModule rec {
pname = "kompose";
version = "1.21.0";
goPackagePath = "github.com/kubernetes/kompose";
version = "1.26.1";
src = fetchFromGitHub {
rev = "v${version}";
owner = "kubernetes";
repo = "kompose";
sha256 = "15a1alf6ywwfc4z5kdcnv64fp3cfy3qrcw62ny6xyn1kh1w24vkh";
rev = "v${version}";
sha256 = "sha256-NfzqGG5ZwPpmjhvcvXN1AA+kfZG/oujbAEtXkm1mzeU=";
};
vendorSha256 = "sha256-OR5U2PnebO0a+lwU09Dveh0Yxk91cmSRorTxQIO5lHc=";
nativeBuildInputs = [ installShellFiles ];
ldflags = [ "-s" "-w" ];
checkFlags = [ "-short" ];
postInstall = ''
for shell in bash zsh; do
$out/bin/kompose completion $shell > kompose.$shell
@ -21,6 +26,11 @@ buildGoPackage rec {
done
'';
passthru.tests.version = testVersion {
package = kompose;
command = "kompose version";
};
meta = with lib; {
description = "A tool to help users who are familiar with docker-compose move to Kubernetes";
homepage = "https://kompose.io";

Loading…
Cancel
Save