From 3c0268334dca1842d73aae2cb4cdd48db9bb535d Mon Sep 17 00:00:00 2001 From: Christian Theune Date: Tue, 29 Dec 2015 09:13:27 +0100 Subject: [PATCH 1/3] syncthing: 0.12.9 -> 0.12.10 --- pkgs/top-level/go-packages.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/top-level/go-packages.nix b/pkgs/top-level/go-packages.nix index e1825ace20d1..1256d8ae05e2 100644 --- a/pkgs/top-level/go-packages.nix +++ b/pkgs/top-level/go-packages.nix @@ -2285,7 +2285,7 @@ let }; osext = buildFromGitHub { - rev = "10da29423eb9a6269092eebdc2be32209612d9d2"; + rev = "29ae4ffbc9a6fe9fb2bc5029050ce6996ea1d3bc"; owner = "kardianos"; repo = "osext"; sha256 = "1mawalaz84i16njkz6f9fd5jxhcbxkbsjnav3cmqq2dncv2hyv8a"; @@ -3092,11 +3092,11 @@ let }; syncthing = buildFromGitHub rec { - version = "0.12.9"; + version = "0.12.10"; rev = "v${version}"; owner = "syncthing"; repo = "syncthing"; - sha256 = "0d420bmx1ifhjgbc65bflnawqddi4h86p7fvxzzqwfsaj94fsfbi"; + sha256 = "1xvar4mm6f33mg8d8z8h49cni6sj1vfns379zspqvszs404fra0z"; buildFlags = [ "-tags noupgrade,release" ]; disabled = isGo14; buildInputs = [ From 1ac4839968d0961205ebf314f8eb699d9fd758d1 Mon Sep 17 00:00:00 2001 From: Christian Theune Date: Fri, 1 Jan 2016 12:43:16 +0100 Subject: [PATCH 2/3] Fix "net" dependency for go1.4 packages. This was broken when we updated to syncthing 0.12 but wasn't noticed for some reason. Nox caught this now. --- pkgs/top-level/go-packages.nix | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/pkgs/top-level/go-packages.nix b/pkgs/top-level/go-packages.nix index 1256d8ae05e2..289098410d80 100644 --- a/pkgs/top-level/go-packages.nix +++ b/pkgs/top-level/go-packages.nix @@ -57,9 +57,9 @@ let goPackageAliases = [ "github.com/golang/image" ]; }; - net = buildFromGitHub { + net_go15 = buildFromGitHub { rev = "62ac18b461605b4be188bbc7300e9aa2bc836cd4"; - date = "2015-08-29"; + date = "2015-11-04"; owner = "golang"; repo = "net"; sha256 = "0lwwvbbwbf3yshxkfhn6z20gd45dkvnmw2ms36diiy34krgy402p"; @@ -72,6 +72,23 @@ let propagatedBuildInputs = [ text crypto ]; }; + net_go14 = buildFromGitHub { + rev = "ea47fc708ee3e20177f3ca3716217c4ab75942cb"; + date = "2015-08-29"; + owner = "golang"; + repo = "net"; + sha256 = "0x1pmg97n7l62vak9qnjdjrrfl98jydhv6j0w3jkk4dycdlzn30d"; + goPackagePath = "golang.org/x/net"; + goPackageAliases = [ + "code.google.com/p/go.net" + "github.com/hashicorp/go.net" + "github.com/golang/net" + ]; + propagatedBuildInputs = [ text ]; + }; + + net = if isGo14 then net_go14 else net_go15; + oauth2 = buildFromGitHub { rev = "397fe7649477ff2e8ced8fc0b2696f781e53745a"; date = "2015-06-23"; From 94102eaa417d6eada115277e900ee280910a6f18 Mon Sep 17 00:00:00 2001 From: Christian Theune Date: Fri, 1 Jan 2016 13:10:44 +0100 Subject: [PATCH 3/3] Disable Go-version-specific net packages to avoid accidental builds and dependencies. --- 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 289098410d80..f480fb756e7f 100644 --- a/pkgs/top-level/go-packages.nix +++ b/pkgs/top-level/go-packages.nix @@ -70,6 +70,7 @@ let "github.com/golang/net" ]; propagatedBuildInputs = [ text crypto ]; + disabled = isGo14; }; net_go14 = buildFromGitHub { @@ -85,6 +86,7 @@ let "github.com/golang/net" ]; propagatedBuildInputs = [ text ]; + disabled = !isGo14; }; net = if isGo14 then net_go14 else net_go15;