From 70c6265230f6aec1a5ab5b7a8d3c1b2385bcb1b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Soko=C5=82owski?= Date: Fri, 27 Sep 2019 16:21:29 +0200 Subject: [PATCH] upgrade Go: 1.11 > 1.12 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jakub SokoĊ‚owski --- nix/derivation.nix | 2 +- nix/nixpkgs-bootstrap.nix | 9 ++++++--- nix/patched-go/default.nix | 2 -- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/nix/derivation.nix b/nix/derivation.nix index e4151ffdef0..a6725ec75d1 100644 --- a/nix/derivation.nix +++ b/nix/derivation.nix @@ -17,7 +17,7 @@ let # TODO: Try to use stdenv for iOS. The problem is with building iOS as the build is trying to pass parameters to Apple's ld that are meant for GNU's ld (e.g. -dynamiclib) stdenv = pkgs.stdenvNoCC; maven = pkgs.maven; - baseGo = pkgs.go_1_11; + baseGo = pkgs.go_1_12; go = pkgs.callPackage ./patched-go { inherit baseGo; }; buildGoPackage = pkgs.buildGoPackage.override { inherit go; }; desktop = pkgs.callPackage ./desktop { inherit target-os stdenv status-go pkgs go nodejs; inherit (pkgs) darwin; }; diff --git a/nix/nixpkgs-bootstrap.nix b/nix/nixpkgs-bootstrap.nix index 30c750874a9..a4d2bc2241d 100644 --- a/nix/nixpkgs-bootstrap.nix +++ b/nix/nixpkgs-bootstrap.nix @@ -1,11 +1,14 @@ # This file controls the pinned version of nixpkgs we use for our Nix environment { config ? { android_sdk.accept_license = true; }, pkgs ? (import ((import { }).fetchFromGitHub { + name = "nixpkgs-source"; owner = "status-im"; repo = "nixpkgs"; - rev = "db492b61572251c2866f6b5e6e94e9d70e7d3021"; - sha256 = "188r7gbcrxi20nj6xh9bmdf3lbjwb94v9s0wpacl7q39g1fca66h"; - name = "nixpkgs-source"; + rev = "f54e1c6441868450e947f6171b129dfb90a91653"; + sha256 = "13cf3pi277ifg57l11kmjk08vrpv6km2jfxq7sp63zxw5bgkiqpd"; + # To get the compressed Nix sha256, use: + # nix-prefetch-url --unpack https://github.com/${ORG}/nixpkgs/archive/${REV}.tar.gz + # The last line will be the hash. })) { inherit config; } }: { diff --git a/nix/patched-go/default.nix b/nix/patched-go/default.nix index f8b86a99d54..a1bba317188 100644 --- a/nix/patched-go/default.nix +++ b/nix/patched-go/default.nix @@ -15,8 +15,6 @@ let if tmp == "" { tmp, err = ioutil.TempDir(os.Getenv("GOTMPDIR"), "go-build") }' - # Disable chown tests, they fail with 'invalid argument' - rm src/os/os_unix_test.go ''; });