mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 15:33:13 +00:00
packer: fix compilation
* Remove duplicate "packer" source * Use the same version of go everywhere
This commit is contained in:
parent
f870d6aeb6
commit
943d59268a
@ -1,4 +1,4 @@
|
||||
{ stdenv, lib, go, gox, gotools, buildGoPackage, fetchFromGitHub
|
||||
{ stdenv, lib, gox, gotools, buildGoPackage, fetchFromGitHub
|
||||
, fetchgit, fetchhg, fetchbzr, fetchsvn }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
@ -6,10 +6,10 @@ stdenv.mkDerivation rec {
|
||||
version = "0.10.1";
|
||||
|
||||
src = import ./deps.nix {
|
||||
inherit stdenv lib go gox gotools buildGoPackage fetchgit fetchhg fetchbzr fetchsvn;
|
||||
inherit stdenv lib gox gotools buildGoPackage fetchgit fetchhg fetchbzr fetchsvn;
|
||||
};
|
||||
|
||||
buildInputs = [ go gox gotools ];
|
||||
buildInputs = [ src.go gox gotools ];
|
||||
|
||||
configurePhase = ''
|
||||
export GOPATH=$PWD/share/go
|
||||
|
@ -1,11 +1,11 @@
|
||||
{ stdenv, lib, go, gox, gotools, buildGoPackage, fetchgit, fetchhg, fetchbzr, fetchsvn }:
|
||||
{ stdenv, lib, gox, gotools, buildGoPackage, fetchgit, fetchhg, fetchbzr, fetchsvn }:
|
||||
|
||||
buildGoPackage rec {
|
||||
name = "packer-${version}";
|
||||
version = "20160507-${stdenv.lib.strings.substring 0 7 rev}";
|
||||
rev = "4e5f65131b5491ab44ff8aa0626abe4a85597ac0";
|
||||
|
||||
buildInputs = [ go gox gotools ];
|
||||
buildInputs = [ gox gotools ];
|
||||
|
||||
goPackagePath = "github.com/mitchellh/packer";
|
||||
|
||||
@ -376,15 +376,6 @@ buildGoPackage rec {
|
||||
sha256 = "0ydhbxziy9204qr43pjdh88y2jg34g2mhzdapjyfpf8a1rin6dn3";
|
||||
};
|
||||
}
|
||||
{
|
||||
goPackagePath = "github.com/mitchellh/packer";
|
||||
|
||||
src = fetchgit {
|
||||
url = "https://github.com/mitchellh/packer";
|
||||
rev = "4e5f65131b5491ab44ff8aa0626abe4a85597ac0";
|
||||
sha256 = "1a61f022h4ygnkp1lyr7vhq5w32a3f061dymgkqmz4c3b8fzcc10";
|
||||
};
|
||||
}
|
||||
{
|
||||
goPackagePath = "github.com/mitchellh/panicwrap";
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user