nixpkgs/pkgs/development/tools/vendir/default.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

25 lines
658 B
Nix

{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "vendir";
version = "0.40.0";
src = fetchFromGitHub {
owner = "vmware-tanzu";
repo = "carvel-vendir";
rev = "v${version}";
sha256 = "sha256-Hyx33/j9spZEEkKB5R2vUmEq8tjzoQiI2EKdyXymQR8=";
};
vendorHash = null;
subPackages = [ "cmd/vendir" ];
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 ];
};
}