Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at netboot-syslinux-multiplatform 39 lines 995 B view raw
1{ lib 2, stdenv 3, buildGoModule 4, fetchFromGitHub 5, installShellFiles 6}: 7 8buildGoModule rec { 9 pname = "packer"; 10 version = "1.9.0"; 11 12 src = fetchFromGitHub { 13 owner = "hashicorp"; 14 repo = "packer"; 15 rev = "v${version}"; 16 sha256 = "sha256-UcYaZOXDcKlvE6Iba2DrGM6L8RqaYjSWTv+8YmrBQjs="; 17 }; 18 19 vendorHash = "sha256-aRjSYnb8xyjI4Gn4I91aP3evCqimlL5zR6jpgWNFRME="; 20 21 subPackages = [ "." ]; 22 23 ldflags = [ "-s" "-w" ]; 24 25 nativeBuildInputs = [ installShellFiles ]; 26 27 postInstall = '' 28 installShellCompletion --zsh contrib/zsh-completion/_packer 29 ''; 30 31 meta = with lib; { 32 description = "A tool for creating identical machine images for multiple platforms from a single source configuration"; 33 homepage = "https://www.packer.io"; 34 license = licenses.mpl20; 35 maintainers = with maintainers; [ cstrahan zimbatm ma27 techknowlogick ]; 36 changelog = "https://github.com/hashicorp/packer/blob/v${version}/CHANGELOG.md"; 37 platforms = platforms.unix; 38 }; 39}