nixpkgs/pkgs/development/tools/packer/default.nix

25 lines
678 B
Nix
Raw Normal View History

{ lib, buildGoPackage, fetchFromGitHub }:
2017-01-04 16:24:56 +00:00
buildGoPackage rec {
pname = "packer";
version = "1.6.6";
2014-05-13 23:19:41 +00:00
2017-10-05 01:27:37 +00:00
goPackagePath = "github.com/hashicorp/packer";
2016-05-13 08:25:01 +00:00
2017-01-04 16:24:56 +00:00
subPackages = [ "." ];
2016-05-13 08:25:01 +00:00
2017-01-04 16:24:56 +00:00
src = fetchFromGitHub {
2017-10-05 01:27:37 +00:00
owner = "hashicorp";
2017-01-04 16:24:56 +00:00
repo = "packer";
rev = "v${version}";
sha256 = "sha256-kFDy8Zlx+D5JDyNlAmB/ICTe4K9s6KDbALP5pom5OQg=";
2017-01-04 16:24:56 +00:00
};
2014-05-13 23:19:41 +00:00
meta = with lib; {
2014-05-13 23:19:41 +00:00
description = "A tool for creating identical machine images for multiple platforms from a single source configuration";
homepage = "https://www.packer.io";
2014-05-13 23:19:41 +00:00
license = licenses.mpl20;
maintainers = with maintainers; [ cstrahan zimbatm ma27 ];
2014-05-13 23:19:41 +00:00
platforms = platforms.unix;
};
}