Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{
2 lib,
3 buildGoModule,
4 fetchFromGitHub,
5}:
6
7buildGoModule rec {
8 pname = "vendir";
9 version = "0.44.0";
10
11 src = fetchFromGitHub {
12 owner = "vmware-tanzu";
13 repo = "carvel-vendir";
14 rev = "v${version}";
15 sha256 = "sha256-J+i0AdNw35Ccb/QtvKk4U5eA9uAZUv47GrqJMii/cTg=";
16 };
17
18 vendorHash = null;
19
20 subPackages = [ "cmd/vendir" ];
21
22 ldflags = [
23 "-X carvel.dev/vendir/pkg/vendir/version.Version=${version}"
24 ];
25
26 meta = with lib; {
27 description = "CLI tool to vendor portions of git repos, github releases, helm charts, docker image contents, etc. declaratively";
28 mainProgram = "vendir";
29 homepage = "https://carvel.dev/vendir/";
30 license = licenses.asl20;
31 maintainers = with maintainers; [ russell ];
32 };
33}