nixpkgs/pkgs/by-name/ko/kompose/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

42 lines
1.0 KiB
Nix
Raw Normal View History

2024-02-21 11:49:31 +00:00
{ lib, buildGoModule, fetchFromGitHub, installShellFiles, testers, kompose, git }:
2017-11-25 14:24:52 +00:00
2022-04-04 15:35:00 +01:00
buildGoModule rec {
pname = "kompose";
2024-06-09 00:42:48 +01:00
version = "1.34.0";
2017-11-25 14:24:52 +00:00
src = fetchFromGitHub {
owner = "kubernetes";
repo = "kompose";
2022-04-04 15:35:00 +01:00
rev = "v${version}";
2024-06-09 00:42:48 +01:00
hash = "sha256-lBNf/pNJulex3WNRx8ZQcGag2nUPqjPKU9X/xDNxQjc=";
2017-11-25 14:24:52 +00:00
};
2024-06-09 00:42:48 +01:00
vendorHash = "sha256-SakezUp2Gj1PxY1Gwf8tH2yShtB/MPIqGjM/scrGG4I=";
2022-04-04 15:35:00 +01:00
nativeBuildInputs = [ installShellFiles git ];
2022-04-04 15:35:00 +01:00
ldflags = [ "-s" "-w" ];
checkFlags = [ "-short" ];
postInstall = ''
2020-04-26 04:16:51 +01:00
for shell in bash zsh; do
$out/bin/kompose completion $shell > kompose.$shell
2020-04-26 04:16:51 +01:00
installShellCompletion kompose.$shell
done
'';
2022-04-26 08:58:49 +01:00
passthru.tests.version = testers.testVersion {
2022-04-04 15:35:00 +01:00
package = kompose;
command = "kompose version";
};
meta = with lib; {
2017-11-25 14:24:52 +00:00
description = "Tool to help users who are familiar with docker-compose move to Kubernetes";
mainProgram = "kompose";
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
};
}