nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ stdenv, buildGoPackage, fetchFromGitHub }:
2buildGoPackage rec {
3 name = "packer-${version}";
4 version = "1.0.3";
5
6 goPackagePath = "github.com/mitchellh/packer";
7
8 subPackages = [ "." ];
9
10 src = fetchFromGitHub {
11 owner = "mitchellh";
12 repo = "packer";
13 rev = "v${version}";
14 sha256 = "1bd0rv93pxlv58c0x1d4dsjq4pg5qwrm2p7qw83pca7izlncgvfr";
15 };
16
17 goDeps = ./deps.nix;
18
19 meta = with stdenv.lib; {
20 description = "A tool for creating identical machine images for multiple platforms from a single source configuration";
21 homepage = https://www.packer.io;
22 license = licenses.mpl20;
23 maintainers = with maintainers; [ cstrahan zimbatm ];
24 platforms = platforms.unix;
25 };
26}