mirror of
https://github.com/status-im/status-react.git
synced 2025-01-09 10:42:53 +00:00
2dfb3ab838
fixes #18311 This PR upgrades `nixpkgs` to latest release version of 23-11 ref -> https://github.com/NixOS/nixpkgs/releases/tag/23.11 - `Gradle` from `8.0.1` -> `8.4` - `Git` from `2.40.1` -> `2.42.0` - `Curl` from `8.0.1` -> `8.4.0` - `OpenSSL` from `3.0.8` -> `3.0.13` - `NodeJS` from `18.16.0` -> `18.19.1` - `Python` from `3.10.11` -> `3.10.13` - `Clojure` from `1.11.1.1273` -> `1.11.1.1413` - and some more stuff - `xcbeautify` , this was added in 23-11 ->https://github.com/NixOS/nixpkgs/pull/289446 - `idb-companion`, this was also added in 23-11 -> https://github.com/NixOS/nixpkgs/pull/296440
41 lines
1.2 KiB
Nix
41 lines
1.2 KiB
Nix
# This file controls the pinned version of nixpkgs we use for our Nix environment
|
|
# as well as which versions of package we use, including their overrides.
|
|
{ config ? { } }:
|
|
|
|
let
|
|
# For testing local version of nixpkgs
|
|
#nixpkgsSrc = (import <nixpkgs> { }).lib.cleanSource "/home/jakubgs/work/nixpkgs";
|
|
|
|
# We follow release 23-11 of nixpkgs
|
|
# https://github.com/NixOS/nixpkgs/releases/tag/23.11
|
|
nixpkgsSrc = builtins.fetchTarball {
|
|
url = "https://github.com/NixOS/nixpkgs/archive/224fd9a362487ab2894dac0df161c84ab1d8880b.tar.gz";
|
|
sha256 = "sha256:1syvl39pi1h8lf5gkd9h7ksn5hp34cj7pa3abr59217kv0bdklhy";
|
|
};
|
|
|
|
# Status specific configuration defaults
|
|
defaultConfig = {
|
|
android_sdk.accept_license = true;
|
|
allowUnfree = true;
|
|
};
|
|
|
|
# Override some packages and utilities
|
|
pkgsOverlay = import ./overlay.nix;
|
|
|
|
# Fix for lack of Android SDK for M1 Macs.
|
|
systemOverride = let
|
|
inherit (builtins) currentSystem getEnv;
|
|
envSystemOverride = getEnv "NIXPKGS_SYSTEM_OVERRIDE";
|
|
in
|
|
if envSystemOverride != "" then
|
|
envSystemOverride
|
|
else
|
|
currentSystem;
|
|
in
|
|
# import nixpkgs with a config override
|
|
(import nixpkgsSrc) {
|
|
config = defaultConfig // config;
|
|
system = systemOverride;
|
|
overlays = [ pkgsOverlay ];
|
|
}
|