6d4aeb4377
GitOrigin-RevId: 0f213d0fee84280d8c3a97f7469b988d6fe5fcdf
51 lines
1.7 KiB
Nix
51 lines
1.7 KiB
Nix
{ lib, buildGoModule, fetchFromGitHub, installShellFiles }:
|
|
|
|
buildGoModule rec {
|
|
pname = "skaffold";
|
|
version = "2.0.4";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "GoogleContainerTools";
|
|
repo = "skaffold";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-TFI715knhQ3QyWF1EwIxZfZQW16uDWAqa6LVNfqC8Ws=";
|
|
};
|
|
|
|
vendorSha256 = "sha256-yy1BVorjLEcZR6PqupBiZx2plwPJ6xlxripbyB6RLek=";
|
|
|
|
subPackages = ["cmd/skaffold"];
|
|
|
|
ldflags = let t = "github.com/GoogleContainerTools/skaffold/pkg/skaffold"; in [
|
|
"-s" "-w"
|
|
"-X ${t}/version.version=v${version}"
|
|
"-X ${t}/version.gitCommit=${src.rev}"
|
|
"-X ${t}/version.buildDate=unknown"
|
|
];
|
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
doInstallCheck = true;
|
|
installCheckPhase = ''
|
|
$out/bin/skaffold version | grep ${version} > /dev/null
|
|
'';
|
|
|
|
postInstall = ''
|
|
installShellCompletion --cmd skaffold \
|
|
--bash <($out/bin/skaffold completion bash) \
|
|
--zsh <($out/bin/skaffold completion zsh)
|
|
'';
|
|
|
|
meta = with lib; {
|
|
homepage = "https://skaffold.dev/";
|
|
changelog = "https://github.com/GoogleContainerTools/skaffold/releases/tag/v${version}";
|
|
description = "Easy and Repeatable Kubernetes Development";
|
|
longDescription = ''
|
|
Skaffold is a command line tool that facilitates continuous development for Kubernetes applications.
|
|
You can iterate on your application source code locally then deploy to local or remote Kubernetes clusters.
|
|
Skaffold handles the workflow for building, pushing and deploying your application.
|
|
It also provides building blocks and describe customizations for a CI/CD pipeline.
|
|
'';
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ vdemeester bryanasdev000];
|
|
};
|
|
}
|