Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
47 lines
979 B
Nix
47 lines
979 B
Nix
{
|
|
lib,
|
|
buildGoModule,
|
|
fetchFromGitHub,
|
|
installShellFiles,
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "packer";
|
|
version = "1.14.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "hashicorp";
|
|
repo = "packer";
|
|
rev = "v${version}";
|
|
hash = "sha256-PR2wKpqU4pL5OurOR+ju9yil6cJF5WRXmVP0g9JF5KM=";
|
|
};
|
|
|
|
vendorHash = "sha256-LJklEYxNYwRQNdxoO1FUCD1kK38+eptGBff+3MHT44U=";
|
|
|
|
subPackages = [ "." ];
|
|
|
|
ldflags = [
|
|
"-s"
|
|
"-w"
|
|
];
|
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
postInstall = ''
|
|
installShellCompletion --zsh contrib/zsh-completion/_packer
|
|
'';
|
|
|
|
meta = {
|
|
description = "Tool for creating identical machine images for multiple platforms from a single source configuration";
|
|
homepage = "https://www.packer.io";
|
|
license = lib.licenses.bsl11;
|
|
maintainers = with lib.maintainers; [
|
|
zimbatm
|
|
ma27
|
|
techknowlogick
|
|
qjoly
|
|
];
|
|
changelog = "https://github.com/hashicorp/packer/blob/v${version}/CHANGELOG.md";
|
|
};
|
|
}
|