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