Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.09 34 lines 1.1 kB view raw
1{ lib, buildGoModule, fetchFromGitHub, installShellFiles }: 2 3buildGoModule rec { 4 pname = "pack"; 5 version = "0.13.0"; 6 7 src = fetchFromGitHub { 8 owner = "buildpacks"; 9 repo = pname; 10 rev = "v${version}"; 11 sha256 = "0h7lgsg5d74pfa15kx0y3ngnvmz64znqk2k73iyjya9pi9h8hh88"; 12 }; 13 14 vendorSha256 = "1c38g169kq9kv6x0x1rlg39ywbc1q66fndby0v85b3ri3xb52869"; 15 16 nativeBuildInputs = [ installShellFiles ]; 17 18 subPackages = [ "cmd/pack" ]; 19 20 buildFlagsArray = [ "-ldflags=-s -w -X github.com/buildpacks/pack.Version=${version}" ]; 21 22 postInstall = '' 23 installShellCompletion --bash --name pack.bash $(PACK_HOME=$PWD $out/bin/pack completion --shell bash) 24 installShellCompletion --zsh --name _pack $(PACK_HOME=$PWD $out/bin/pack completion --shell zsh) 25 ''; 26 27 meta = with lib; { 28 homepage = "https://buildpacks.io/"; 29 changelog = "https://github.com/buildpacks/pack/releases/tag/v${version}"; 30 description = "CLI for building apps using Cloud Native Buildpacks"; 31 license = licenses.asl20; 32 maintainers = [ maintainers.marsam ]; 33 }; 34}