2023-05-16 01:55:04 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub, installShellFiles, makeWrapper }:
|
2018-10-19 07:11:45 +00:00
|
|
|
|
2021-02-16 08:44:10 +00:00
|
|
|
buildGoModule rec {
|
2019-08-26 16:52:37 +00:00
|
|
|
pname = "skaffold";
|
2024-05-15 22:24:50 +00:00
|
|
|
version = "2.12.0";
|
2021-02-16 08:44:10 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "GoogleContainerTools";
|
|
|
|
repo = "skaffold";
|
|
|
|
rev = "v${version}";
|
2024-05-15 22:24:50 +00:00
|
|
|
hash = "sha256-q57n5Jo682u/YK+5bgYqMufjPuPOPsBgJzxSl1fdqxA=";
|
2021-02-16 08:44:10 +00:00
|
|
|
};
|
|
|
|
|
2023-05-04 07:26:25 +00:00
|
|
|
vendorHash = null;
|
2018-10-19 07:11:45 +00:00
|
|
|
|
|
|
|
subPackages = ["cmd/skaffold"];
|
|
|
|
|
2023-02-09 08:02:04 +00:00
|
|
|
ldflags = let t = "github.com/GoogleContainerTools/skaffold/v2/pkg/skaffold"; in [
|
2021-08-26 06:45:51 +00:00
|
|
|
"-s" "-w"
|
|
|
|
"-X ${t}/version.version=v${version}"
|
|
|
|
"-X ${t}/version.gitCommit=${src.rev}"
|
|
|
|
"-X ${t}/version.buildDate=unknown"
|
|
|
|
];
|
2018-10-19 07:11:45 +00:00
|
|
|
|
2023-05-16 01:55:04 +00:00
|
|
|
nativeBuildInputs = [ installShellFiles makeWrapper ];
|
2021-02-16 08:44:10 +00:00
|
|
|
|
2022-01-22 23:20:18 +00:00
|
|
|
doInstallCheck = true;
|
|
|
|
installCheckPhase = ''
|
|
|
|
$out/bin/skaffold version | grep ${version} > /dev/null
|
|
|
|
'';
|
|
|
|
|
2020-02-22 22:04:57 +00:00
|
|
|
postInstall = ''
|
2023-05-16 01:55:04 +00:00
|
|
|
wrapProgram $out/bin/skaffold --set SKAFFOLD_UPDATE_CHECK false
|
|
|
|
|
2021-02-16 08:44:10 +00:00
|
|
|
installShellCompletion --cmd skaffold \
|
|
|
|
--bash <($out/bin/skaffold completion bash) \
|
|
|
|
--zsh <($out/bin/skaffold completion zsh)
|
2020-02-22 22:04:57 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://skaffold.dev/";
|
2021-02-16 08:44:10 +00:00
|
|
|
changelog = "https://github.com/GoogleContainerTools/skaffold/releases/tag/v${version}";
|
|
|
|
description = "Easy and Repeatable Kubernetes Development";
|
2024-03-19 02:14:51 +00:00
|
|
|
mainProgram = "skaffold";
|
2021-02-16 08:44:10 +00:00
|
|
|
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.
|
|
|
|
'';
|
2020-02-22 22:04:57 +00:00
|
|
|
license = licenses.asl20;
|
2021-12-12 08:44:01 +00:00
|
|
|
maintainers = with maintainers; [ vdemeester bryanasdev000];
|
2018-10-19 07:11:45 +00:00
|
|
|
};
|
|
|
|
}
|