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 = "imgpkg"; 9 version = "0.46.1"; 10 11 src = fetchFromGitHub { 12 owner = "carvel-dev"; 13 repo = "imgpkg"; 14 rev = "v${version}"; 15 hash = "sha256-OrZjk0ap7ZNlxe/1FIVCZX93bVYxCJzFiijnQOIPeWk="; 16 }; 17 18 vendorHash = null; 19 20 subPackages = [ "cmd/imgpkg" ]; 21 22 env.CGO_ENABLED = "0"; 23 ldflags = [ "-X=carvel.dev/imgpkg/pkg/imgpkg/cmd.Version=${version}" ]; 24 25 meta = { 26 description = "Store application configuration files in Docker/OCI registries"; 27 homepage = "https://carvel.dev/imgpkg"; 28 license = lib.licenses.asl20; 29 maintainers = with lib.maintainers; [ benchand ]; 30 mainProgram = "imgpkg"; 31 }; 32}