nix: lock Go builders at 1.17.x

If we keep using specific `buildGo117Package` we can easily forge to
upgrade when we bump the Go compiler itself. By locking those explicitly
in `overlay.nix` we make sure they all get bumped together.

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2022-05-26 10:58:25 +02:00
parent 8820f458c9
commit bcf3e3205a
No known key found for this signature in database
GPG Key ID: 09AA5403E54D9931
4 changed files with 9 additions and 7 deletions

View File

@ -33,7 +33,6 @@ in {
gradlePropParser = callPackage ./tools/gradlePropParser.nix { };
# Package version adjustments
go = super.pkgs.go_1_17;
gradle = super.pkgs.gradle_5;
nodejs = super.pkgs.nodejs-16_x;
openjdk = super.pkgs.openjdk8_headless;
@ -41,6 +40,9 @@ in {
version = "13.3";
allowHigher = true;
};
go = super.pkgs.go_1_17;
buildGoPackage = super.pkgs.buildGo117Package;
buildGoModule = super.pkgs.buildGo117Module;
gomobile = super.gomobile.override {
# FIXME: No Android SDK packages for aarch64-darwin.
withAndroidPkgs = stdenv.system != "aarch64-darwin";

View File

@ -1,8 +1,8 @@
{ lib, buildGo116Module, fetchFromGitHub }:
{ lib, buildGoModule, fetchFromGitHub }:
let
inherit (lib) strings;
in buildGo116Module rec {
in buildGoModule rec {
pname = "go-maven-resolver";
version = "v1.1.2";

View File

@ -1,4 +1,4 @@
{ lib, stdenv, utils, buildGo117Package
{ lib, stdenv, utils, buildGoPackage
, go, xcodeWrapper
# object with source attributes
, meta, source}:
@ -7,7 +7,7 @@ let
inherit (stdenv) isDarwin;
inherit (lib) optional;
in buildGo117Package {
in buildGoPackage {
pname = source.repo;
version = "${source.cleanVersion}-${source.shortRev}";

View File

@ -1,4 +1,4 @@
{ lib, stdenv, utils, callPackage, buildGo116Package
{ lib, stdenv, utils, callPackage, buildGoPackage
, go, androidPkgs, openjdk, gomobile, xcodeWrapper
# object with source attributes
, meta, source
@ -23,7 +23,7 @@ let
# formatted for use with -target
targetArchs = map (a: "${platform}/${a}") architectures;
in buildGo116Package {
in buildGoPackage {
pname = source.repo;
version = "${source.cleanVersion}-${source.shortRev}-${platform}";