From b198028215328a2833a163cd22a9efd99ef5bf71 Mon Sep 17 00:00:00 2001 From: Mathieu Boespflug Date: Wed, 16 Mar 2016 19:27:23 +0100 Subject: [PATCH 1/2] go: Add isGo15 and isGo16 tests. --- pkgs/top-level/go-packages.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/top-level/go-packages.nix b/pkgs/top-level/go-packages.nix index e49fe4516817..6845f1dfeb0f 100644 --- a/pkgs/top-level/go-packages.nix +++ b/pkgs/top-level/go-packages.nix @@ -5,6 +5,8 @@ let isGo14 = go.meta.branch == "1.4"; + isGo15 = go.meta.branch == "1.5"; + isGo16 = go.meta.branch == "1.6"; self = _self // overrides; _self = with self; { From 8b105a325ad4a5a49ebea700bb0b0e52d0807858 Mon Sep 17 00:00:00 2001 From: Mathieu Boespflug Date: Wed, 16 Mar 2016 19:28:02 +0100 Subject: [PATCH 2/2] terraform: init at 0.6.13. --- pkgs/top-level/all-packages.nix | 2 ++ pkgs/top-level/go-packages.nix | 10 ++++++++++ 2 files changed, 12 insertions(+) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index ef2bb17b046b..7d60eee9f61e 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -16231,6 +16231,8 @@ let sqsh = callPackage ../development/tools/sqsh { }; + terraform = go16Packages.terraform.bin // { outputs = [ "bin" ]; }; + tetex = callPackage ../tools/typesetting/tex/tetex { libpng = libpng12; }; tewi-font = callPackage ../data/fonts/tewi {}; diff --git a/pkgs/top-level/go-packages.nix b/pkgs/top-level/go-packages.nix index 6845f1dfeb0f..03c54d2ccc66 100644 --- a/pkgs/top-level/go-packages.nix +++ b/pkgs/top-level/go-packages.nix @@ -3461,6 +3461,16 @@ let subPackages = [ "./" ]; # prevent building _demos }; + terraform = buildFromGitHub { + rev = "v0.6.13"; + owner = "hashicorp"; + repo = "terraform"; + disabled = !isGo16; + sha256 = "1f1xm5pyz1hxqm2k74psanirpydf71pmxixplyc2x2w68hgjzi2l"; + + buildInputs = [ ]; + }; + testify = buildGoPackage rec { rev = "089c7181b8c728499929ff09b62d3fdd8df8adff"; name = "testify-${stdenv.lib.strings.substring 0 7 rev}";