uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
51
pkgs/development/tools/skaffold/default.nix
Normal file
51
pkgs/development/tools/skaffold/default.nix
Normal file
|
|
@ -0,0 +1,51 @@
|
|||
{ lib, buildGoModule, fetchFromGitHub, installShellFiles }:
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "skaffold";
|
||||
version = "1.38.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "GoogleContainerTools";
|
||||
repo = "skaffold";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-Sy8DpCZEFps6Z4x57ESofNm2EZsPUCHzLz1icl1MOVE=";
|
||||
};
|
||||
|
||||
vendorSha256 = "sha256-RA2KgUjYB3y6sOQdnLSZjr52VosZSaRrVU0BXZvjB1M=";
|
||||
|
||||
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];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue