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