diff options
author | zowoq <59103226+zowoq@users.noreply.github.com> | 2021-02-14 07:09:13 +1000 |
---|---|---|
committer | zowoq <59103226+zowoq@users.noreply.github.com> | 2021-02-14 07:18:54 +1000 |
commit | b3fce6596dfca030188821f15f54e386a208858f (patch) | |
tree | e745da36cae88062c46ef67050a7f3f4c55b0c70 /pkgs/development/tools/packer | |
parent | e66ded9c5041589a5cadcc8e1e910411bbc7f064 (diff) |
packer: set ldflags, install zsh completion
Diffstat (limited to 'pkgs/development/tools/packer')
-rw-r--r-- | pkgs/development/tools/packer/default.nix | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/pkgs/development/tools/packer/default.nix b/pkgs/development/tools/packer/default.nix index 16e5ac082039e..7dc50d6246a59 100644 --- a/pkgs/development/tools/packer/default.nix +++ b/pkgs/development/tools/packer/default.nix @@ -1,4 +1,4 @@ -{ lib, buildGoPackage, fetchFromGitHub }: +{ lib, buildGoPackage, fetchFromGitHub, installShellFiles }: buildGoPackage rec { pname = "packer"; version = "1.6.6"; @@ -14,6 +14,14 @@ buildGoPackage rec { sha256 = "sha256-kFDy8Zlx+D5JDyNlAmB/ICTe4K9s6KDbALP5pom5OQg="; }; + buildFlagsArray = [ "-ldflags=-s -w" ]; + + nativeBuildInputs = [ installShellFiles ]; + + postInstall = '' + installShellCompletion --zsh go/src/${goPackagePath}/contrib/zsh-completion/_packer + ''; + meta = with lib; { description = "A tool for creating identical machine images for multiple platforms from a single source configuration"; homepage = "https://www.packer.io"; |