2017-01-04 16:24:56 +00:00
|
|
|
{ stdenv, buildGoPackage, fetchFromGitHub }:
|
|
|
|
buildGoPackage rec {
|
2016-05-13 09:25:01 +01:00
|
|
|
name = "packer-${version}";
|
2019-05-15 15:47:43 +01:00
|
|
|
version = "1.4.0";
|
2014-05-14 00:19:41 +01:00
|
|
|
|
2017-10-05 02:27:37 +01:00
|
|
|
goPackagePath = "github.com/hashicorp/packer";
|
2016-05-13 09:25:01 +01:00
|
|
|
|
2017-01-04 16:24:56 +00:00
|
|
|
subPackages = [ "." ];
|
2016-05-13 09:25:01 +01:00
|
|
|
|
2017-01-04 16:24:56 +00:00
|
|
|
src = fetchFromGitHub {
|
2017-10-05 02:27:37 +01:00
|
|
|
owner = "hashicorp";
|
2017-01-04 16:24:56 +00:00
|
|
|
repo = "packer";
|
|
|
|
rev = "v${version}";
|
2019-05-15 15:47:43 +01:00
|
|
|
sha256 = "0fpzmwh7vq8vc7gvlnpx4ji4yaxwi2h2ksz0z4782469pkcnbg56";
|
2017-01-04 16:24:56 +00:00
|
|
|
};
|
2014-05-14 00:19:41 +01:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A tool for creating identical machine images for multiple platforms from a single source configuration";
|
2017-08-22 19:50:04 +01:00
|
|
|
homepage = https://www.packer.io;
|
2014-05-14 00:19:41 +01:00
|
|
|
license = licenses.mpl20;
|
2016-05-13 09:25:01 +01:00
|
|
|
maintainers = with maintainers; [ cstrahan zimbatm ];
|
2014-05-14 00:19:41 +01:00
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|