diff --git a/config.nims b/config.nims index 970b04ac3..5fe91024e 100644 --- a/config.nims +++ b/config.nims @@ -80,18 +80,6 @@ else: switch("define", "withoutPCRE") -# the default open files limit is too low on macOS (512), breaking the -# "--debugger:native" build. It can be increased with `ulimit -n 1024`. -if not defined(macosx) and not defined(android): - # add debugging symbols and original files and line numbers - --debugger: - native - if not (defined(windows) and defined(i386)) and not defined(disable_libbacktrace): - # light-weight stack traces using libbacktrace and libunwind - --define: - nimStackTraceOverride - switch("import", "libbacktrace") - --define: nimOldCaseObjects # https://github.com/status-im/nim-confutils/issues/9 diff --git a/flake.lock b/flake.lock index 4b46e8ecb..2fd2baa75 100644 --- a/flake.lock +++ b/flake.lock @@ -2,17 +2,17 @@ "nodes": { "nixpkgs": { "locked": { - "lastModified": 1740603184, - "narHash": "sha256-t+VaahjQAWyA+Ctn2idyo1yxRIYpaDxMgHkgCNiMJa4=", + "lastModified": 1770464364, + "narHash": "sha256-z5NJPSBwsLf/OfD8WTmh79tlSU8XgIbwmk6qB1/TFzY=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "f44bd8ca21e026135061a0a57dcf3d0775b67a49", + "rev": "23d72dabcb3b12469f57b37170fcbc1789bd7457", "type": "github" }, "original": { "owner": "NixOS", "repo": "nixpkgs", - "rev": "f44bd8ca21e026135061a0a57dcf3d0775b67a49", + "rev": "23d72dabcb3b12469f57b37170fcbc1789bd7457", "type": "github" } }, @@ -30,11 +30,11 @@ ] }, "locked": { - "lastModified": 1771125043, - "narHash": "sha256-ldf/s49n6rOAxl7pYLJGGS1N/assoHkCOWdEdLyNZkc=", + "lastModified": 1771211437, + "narHash": "sha256-lcNK438i4DGtyA+bPXXyVLHVmJjYpVKmpux9WASa3ro=", "owner": "oxalica", "repo": "rust-overlay", - "rev": "4912f951a26dc8142b176be2c2ad834319dc06e8", + "rev": "c62195b3d6e1bb11e0c2fb2a494117d3b55d410f", "type": "github" }, "original": { @@ -51,11 +51,11 @@ ] }, "locked": { - "lastModified": 1748399823, - "narHash": "sha256-kahD8D5hOXOsGbNdoLLnqCL887cjHkx98Izc37nDjlA=", + "lastModified": 1771211437, + "narHash": "sha256-lcNK438i4DGtyA+bPXXyVLHVmJjYpVKmpux9WASa3ro=", "owner": "oxalica", "repo": "rust-overlay", - "rev": "d68a69dc71bc19beb3479800392112c2f6218159", + "rev": "c62195b3d6e1bb11e0c2fb2a494117d3b55d410f", "type": "github" }, "original": { @@ -72,17 +72,17 @@ "rust-overlay": "rust-overlay_2" }, "locked": { - "lastModified": 1759236302, - "narHash": "sha256-tzX/C5tKo5GkydZPFhGafRdFqgHUqTpr2sh/49/a/sY=", + "lastModified": 1771279884, + "narHash": "sha256-tzkQPwSl4vPTUo1ixHh6NCENjsBDroMKTjifg2q8QX8=", "owner": "vacp2p", "repo": "zerokit", - "rev": "a4bb3feb5054e6fd24827adf204493e6e173437b", + "rev": "53b18098e6d5d046e3eb1ac338a8f4f651432477", "type": "github" }, "original": { "owner": "vacp2p", - "ref": "v0.9.0", "repo": "zerokit", + "rev": "53b18098e6d5d046e3eb1ac338a8f4f651432477", "type": "github" } } diff --git a/flake.nix b/flake.nix index 950571307..44d6faf82 100644 --- a/flake.nix +++ b/flake.nix @@ -7,9 +7,9 @@ }; inputs = { - # Pinned nixpkgs commit - nixpkgs.url = "github:NixOS/nixpkgs?rev=f44bd8ca21e026135061a0a57dcf3d0775b67a49"; - #nixpkgs.url = "github:NixOS/nixpkgs?rev=23d72dabcb3b12469f57b37170fcbc1789bd7457"; + # Pinning the commit to use same commit across different projects. + # A commit from nixpkgs 25.11 release : https://github.com/NixOS/nixpkgs/tree/release-25.11 + nixpkgs.url = "github:NixOS/nixpkgs?rev=23d72dabcb3b12469f57b37170fcbc1789bd7457"; rust-overlay = { url = "github:oxalica/rust-overlay"; @@ -18,7 +18,7 @@ # External flake input: Zerokit pinned to a specific commit zerokit = { - url = "github:vacp2p/zerokit/v0.9.0"; + url = "github:vacp2p/zerokit/53b18098e6d5d046e3eb1ac338a8f4f651432477"; inputs.nixpkgs.follows = "nixpkgs"; }; }; diff --git a/nix/default.nix b/nix/default.nix index 808b8864e..01b9d674b 100644 --- a/nix/default.nix +++ b/nix/default.nix @@ -29,8 +29,8 @@ in stdenv.mkDerivation { version = "${version}-${revision}"; env = { - #ANDROID_SDK_ROOT="${pkgs.androidPkgs.sdk}"; - #ANDROID_NDK_HOME="${pkgs.androidPkgs.ndk}"; + ANDROID_SDK_ROOT="${pkgs.androidPkgs.sdk}"; + ANDROID_NDK_HOME="${pkgs.androidPkgs.ndk}"; NIMFLAGS = "-d:disableMarchNative -d:git_revision_override=${revision}"; }; @@ -53,6 +53,8 @@ in stdenv.mkDerivation { ]; configurePhase = '' + export HOME=$TMPDIR/myhome + mkdir -p $HOME export NIMBLE_DIR=$NIX_BUILD_TOP/nimbledeps cp -r ${nimbleDeps}/nimbledeps $NIMBLE_DIR cp ${nimbleDeps}/nimble.paths ./ diff --git a/nix/deps.nix b/nix/deps.nix index a0b6018f4..6860ff358 100644 --- a/nix/deps.nix +++ b/nix/deps.nix @@ -37,6 +37,8 @@ stdenv.mkDerivation { --include='*.h' \ --include='*.S' \ --include='*.cc' \ + --include='*.inc' \ + --include='*.a' \ --exclude='*' \ $NIMBLE_DIR/pkgs2 $out/nimbledeps ''; @@ -53,7 +55,7 @@ stdenv.mkDerivation { ''; # Make this a fixed-output derivation to allow internet access for Nimble. - outputHash = "sha256-19mrGOi2LY3xtlzgftP0Q7NxrlOZ7GmxLQgsHbCGKCc="; + outputHash = "sha256-dEWWLeuc15XidSEze+lN3s743VAc2bk9tGEOByZt7rU="; outputHashAlgo = "sha256"; outputHashMode = "recursive"; } diff --git a/nix/pkgs/android-sdk/compose.nix b/nix/pkgs/android-sdk/compose.nix index 9a8536ddb..76ea180f7 100644 --- a/nix/pkgs/android-sdk/compose.nix +++ b/nix/pkgs/android-sdk/compose.nix @@ -10,8 +10,8 @@ androidenv.composeAndroidPackages { cmdLineToolsVersion = "9.0"; toolsVersion = "26.1.1"; - platformToolsVersion = "34.0.5"; - buildToolsVersions = [ "34.0.0" ]; + platformToolsVersion = "36.0.2"; + buildToolsVersions = [ "36.0.0" ]; platformVersions = [ "34" ]; cmakeVersions = [ "3.22.1" ]; ndkVersion = "27.2.12479018"; diff --git a/waku.nimble b/waku.nimble index 3135b4476..64b1a814a 100644 --- a/waku.nimble +++ b/waku.nimble @@ -10,9 +10,9 @@ description = "Waku, Private P2P Messaging for Resource-Restricted Devices" license = "MIT or Apache License 2.0" ### Dependencies -requires "nim >= 2.2.0", +requires "nim >= 2.2.4", # Async & Concurrency - "chronos >= 4.0.4", + "chronos >= 4.2.0", "taskpools", # Logging & Configuration "chronicles", @@ -54,7 +54,7 @@ requires "nim >= 2.2.0", "testutils", "unittest2" -# We use a custom branch to allow higher chronos versions +# We use a custom branch to allow higher chronos versions, like nim-chronos 4.2.0 requires "https://github.com/status-im/nim-websock.git#allow-high-chronos-versions" # Packages not on nimble (use git URLs)