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