about summary refs log tree commit diff
path: root/pkgs/by-name/pa
diff options
context:
space:
mode:
authorzimbatm2024-07-25 22:06:48 +0200
committerzimbatm2024-07-31 09:10:34 +0200
commit5d61acb71b48a794caa327c82f4f781352d1134c (patch)
treebffb2b30a76be0c5df22f269583d5f3ce8bdd7e1 /pkgs/by-name/pa
parentf3edb08a2880a070401df9f9285ec03de6f4f1a7 (diff)
packer: move to by-name
Diffstat (limited to 'pkgs/by-name/pa')
-rw-r--r--pkgs/by-name/pa/packer/package.nix37
1 files changed, 37 insertions, 0 deletions
diff --git a/pkgs/by-name/pa/packer/package.nix b/pkgs/by-name/pa/packer/package.nix
new file mode 100644
index 000000000000..50d56bf9ec9c
--- /dev/null
+++ b/pkgs/by-name/pa/packer/package.nix
@@ -0,0 +1,37 @@
+{ lib
+, buildGoModule
+, fetchFromGitHub
+, installShellFiles
+}:
+
+buildGoModule rec {
+  pname = "packer";
+  version = "1.11.1";
+
+  src = fetchFromGitHub {
+    owner = "hashicorp";
+    repo = "packer";
+    rev = "v${version}";
+    hash = "sha256-GjC8nc8gpYQ3v0IYJc6vz0809PD6kTWx/HE1UOhTYc0=";
+  };
+
+  vendorHash = "sha256-Xmmc30W1ZfMc7YSQswyCjw1KyDA5qi8W+kZ1L7cM3cQ=";
+
+  subPackages = [ "." ];
+
+  ldflags = [ "-s" "-w" ];
+
+  nativeBuildInputs = [ installShellFiles ];
+
+  postInstall = ''
+    installShellCompletion --zsh contrib/zsh-completion/_packer
+  '';
+
+  meta = with lib; {
+    description = "Tool for creating identical machine images for multiple platforms from a single source configuration";
+    homepage    = "https://www.packer.io";
+    license     = licenses.bsl11;
+    maintainers = with maintainers; [ zimbatm ma27 techknowlogick qjoly ];
+    changelog   = "https://github.com/hashicorp/packer/blob/v${version}/CHANGELOG.md";
+  };
+}