1{ stdenv, buildGoPackage, fetchFromGitHub }:
2buildGoPackage rec {
3 pname = "packer";
4 version = "1.6.4";
5
6 goPackagePath = "github.com/hashicorp/packer";
7
8 subPackages = [ "." ];
9
10 src = fetchFromGitHub {
11 owner = "hashicorp";
12 repo = "packer";
13 rev = "v${version}";
14 sha256 = "0nkbm5iamkzi5x64107apnwmqxs4a75pxw935pwpm69ry4535r7w";
15 };
16
17 meta = with stdenv.lib; {
18 description = "A tool for creating identical machine images for multiple platforms from a single source configuration";
19 homepage = "https://www.packer.io";
20 license = licenses.mpl20;
21 maintainers = with maintainers; [ cstrahan zimbatm ma27 ];
22 platforms = platforms.unix;
23 };
24}