nix: upgrade nixpkgs, keep Go at 1.14.15
Notable software upgrades: - Go `1.14.13` to `1.14.15` - Clojure `1.10.1.763` to `1.10.3.855` - NodeJS `12.20.1` to `12.22.1` - Git `2.29.2` to `2.31.1` - CMake `3.10.2` to `3.18.1` - Curl `7.74.0` to `7.76.1` - Android NDK `21.3.6528147` to `22.1.7171670` - Android Platform Tools `30.0.5` to `31.0.2` Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
parent
f9d697dd2e
commit
0652d18653
|
@ -29,7 +29,7 @@ pipeline {
|
||||||
stages {
|
stages {
|
||||||
stage('Setup') {
|
stage('Setup') {
|
||||||
steps { script {
|
steps { script {
|
||||||
nix.shell('nix-env -i openssh', pure: false)
|
nix.shell('nix-env -i openssh', sandbox: false, pure: false)
|
||||||
/* some build targets don't build on MacOS */
|
/* some build targets don't build on MacOS */
|
||||||
uname = sh(script: 'uname', returnStdout: true)
|
uname = sh(script: 'uname', returnStdout: true)
|
||||||
} }
|
} }
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{ stdenv, bundlerEnv, ruby, makeWrapper }:
|
{ stdenv, lib, bundlerEnv, ruby, makeWrapper }:
|
||||||
|
|
||||||
let
|
let
|
||||||
fastlane = stdenv.mkDerivation rec {
|
fastlane = stdenv.mkDerivation rec {
|
||||||
|
@ -28,7 +28,7 @@ let
|
||||||
export FASTLANE_PLUGINFILE_PATH=$STATUS_REACT_HOME/fastlane/Pluginfile
|
export FASTLANE_PLUGINFILE_PATH=$STATUS_REACT_HOME/fastlane/Pluginfile
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with lib; {
|
||||||
description = "A tool to automate building and releasing iOS and Android apps";
|
description = "A tool to automate building and releasing iOS and Android apps";
|
||||||
longDescription = "fastlane is a tool for iOS and Android developers to automate tedious tasks like generating screenshots, dealing with provisioning profiles, and releasing your application.";
|
longDescription = "fastlane is a tool for iOS and Android developers to automate tedious tasks like generating screenshots, dealing with provisioning profiles, and releasing your application.";
|
||||||
homepage = https://github.com/fastlane/fastlane;
|
homepage = https://github.com/fastlane/fastlane;
|
||||||
|
|
|
@ -18,6 +18,11 @@
|
||||||
|
|
||||||
# Android SDK requires an accepted license
|
# Android SDK requires an accepted license
|
||||||
android_sdk.accept_license = true;
|
android_sdk.accept_license = true;
|
||||||
# Android Env still needs old OpenSSL
|
|
||||||
permittedInsecurePackages = [ "openssl-1.0.2u" ];
|
permittedInsecurePackages = [
|
||||||
|
# Android Env still needs old OpenSSL
|
||||||
|
"openssl-1.0.2u"
|
||||||
|
# Support for Go 1.14 ended with the release of Go 1.16
|
||||||
|
"go-1.14.15"
|
||||||
|
];
|
||||||
}
|
}
|
||||||
|
|
|
@ -16,8 +16,7 @@
|
||||||
|
|
||||||
let
|
let
|
||||||
pkgs = import <nixpkgs> { };
|
pkgs = import <nixpkgs> { };
|
||||||
lib = pkgs.stdenv.lib;
|
mkFilter = pkgs.callPackage ./mkFilter.nix { inherit (pkgs) lib; };
|
||||||
mkFilter = pkgs.callPackage ./mkFilter.nix { inherit lib; };
|
|
||||||
absPath = "/ABS/PATH";
|
absPath = "/ABS/PATH";
|
||||||
filter = mkFilter {
|
filter = mkFilter {
|
||||||
root = absPath;
|
root = absPath;
|
||||||
|
|
|
@ -13,8 +13,8 @@ let
|
||||||
name = "nixpkgs-source";
|
name = "nixpkgs-source";
|
||||||
owner = "NixOS";
|
owner = "NixOS";
|
||||||
repo = "nixpkgs";
|
repo = "nixpkgs";
|
||||||
rev = "51894963cbdc41f0cd8f571b7bcf79437d940355";
|
rev = "76f53eef48cc6c340ed063c117aac75c4652627c";
|
||||||
sha256 = "13nfghpnhnr5hbbibsrq172g1rdibd8lycis7ncvf9yxd4rdlf7b";
|
sha256 = "0a2wn0ryq0ngd3ybc3ag70dp9z1x4w1jgy6qr4dzfnzbnn3s5246";
|
||||||
# To get the compressed Nix sha256, use:
|
# To get the compressed Nix sha256, use:
|
||||||
# nix-prefetch-url --unpack https://github.com/${ORG}/nixpkgs/archive/${REV}.tar.gz
|
# nix-prefetch-url --unpack https://github.com/${ORG}/nixpkgs/archive/${REV}.tar.gz
|
||||||
};
|
};
|
||||||
|
|
|
@ -7,16 +7,16 @@
|
||||||
|
|
||||||
androidenv.composeAndroidPackages {
|
androidenv.composeAndroidPackages {
|
||||||
toolsVersion = "26.1.1";
|
toolsVersion = "26.1.1";
|
||||||
platformToolsVersion = "30.0.5";
|
platformToolsVersion = "31.0.2";
|
||||||
buildToolsVersions = [ "30.0.3" ];
|
buildToolsVersions = [ "30.0.3" ];
|
||||||
includeEmulator = false;
|
includeEmulator = false;
|
||||||
includeSources = false;
|
includeSources = false;
|
||||||
platformVersions = [ "29" ];
|
platformVersions = [ "29" ];
|
||||||
includeSystemImages = false;
|
includeSystemImages = false;
|
||||||
systemImageTypes = [ "default" ];
|
systemImageTypes = [ "default" ];
|
||||||
cmakeVersions = [ "3.10.2" ];
|
cmakeVersions = [ "3.18.1" ];
|
||||||
includeNDK = true;
|
includeNDK = true;
|
||||||
ndkVersion = "21.3.6528147";
|
ndkVersion = "22.1.7171670";
|
||||||
useGoogleAPIs = false;
|
useGoogleAPIs = false;
|
||||||
useGoogleTVAddOns = false;
|
useGoogleTVAddOns = false;
|
||||||
includeExtras = [
|
includeExtras = [
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
{ stdenv, utils, callPackage, fetchgit, buildGo114Package,
|
{ stdenv, lib, utils, callPackage, fetchgit, buildGo114Package,
|
||||||
ncurses5, zlib, makeWrapper, patchelf, androidPkgs, xcodeWrapper
|
ncurses5, zlib, makeWrapper, patchelf, androidPkgs, xcodeWrapper
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
inherit (stdenv) isDarwin;
|
inherit (stdenv) isDarwin;
|
||||||
inherit (stdenv.lib) optional optionalString strings;
|
inherit (lib) optional optionalString strings;
|
||||||
in buildGo114Package rec {
|
in buildGo114Package rec {
|
||||||
pname = "gomobile";
|
pname = "gomobile";
|
||||||
version = "20200622-${strings.substring 0 7 rev}";
|
version = "20200622-${strings.substring 0 7 rev}";
|
||||||
|
@ -57,7 +57,7 @@ in buildGo114Package rec {
|
||||||
url = "https://go.googlesource.com/mobile";
|
url = "https://go.googlesource.com/mobile";
|
||||||
};
|
};
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with lib; {
|
||||||
description = "A tool for building and running mobile apps written in Go.";
|
description = "A tool for building and running mobile apps written in Go.";
|
||||||
longDescription = "Gomobile is a tool for building and running mobile apps written in Go.";
|
longDescription = "Gomobile is a tool for building and running mobile apps written in Go.";
|
||||||
homepage = https://go.googlesource.com/mobile;
|
homepage = https://go.googlesource.com/mobile;
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
# This Nix expression takes care of reading/parsing the correct .env configuration file and return it as an attr set
|
# This Nix expression takes care of reading/parsing the correct .env configuration file and return it as an attr set
|
||||||
{ config, stdenv }:
|
{ config, stdenv, lib }:
|
||||||
|
|
||||||
let
|
let
|
||||||
inherit (builtins) listToAttrs head tail readFile;
|
inherit (builtins) listToAttrs head tail readFile;
|
||||||
inherit (stdenv.lib) attrByPath filter hasPrefix nameValuePair splitString;
|
inherit (lib) attrByPath filter hasPrefix nameValuePair splitString;
|
||||||
|
|
||||||
build-type = attrByPath ["status-im" "build-type"] "" config;
|
build-type = attrByPath ["status-im" "build-type"] "" config;
|
||||||
ci = (attrByPath ["status-im" "ci"] "" config) != "";
|
ci = (attrByPath ["status-im" "ci"] "" config) != "";
|
||||||
|
|
Loading…
Reference in New Issue