Luke Granger-Brown
57725ef3ec
git-subtree-dir: third_party/nixpkgs git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
29 lines
743 B
Nix
29 lines
743 B
Nix
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
buildGoModule rec {
|
|
pname = "vendir";
|
|
version = "0.42.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "vmware-tanzu";
|
|
repo = "carvel-vendir";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-/lbCSZZQensoPQbzs3ZC3H02CE6V/eOruiqPRS5vlTE=";
|
|
};
|
|
|
|
vendorHash = null;
|
|
|
|
subPackages = [ "cmd/vendir" ];
|
|
|
|
ldflags = [
|
|
"-X carvel.dev/vendir/pkg/vendir/version.Version=${version}"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "CLI tool to vendor portions of git repos, github releases, helm charts, docker image contents, etc. declaratively";
|
|
mainProgram = "vendir";
|
|
homepage = "https://carvel.dev/vendir/";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ russell ];
|
|
};
|
|
}
|