Skip to content

nix: use Nix Flake from NBS repo to provide Nim#3703

Open
jakubgs wants to merge 1 commit intomasterfrom
nix/use-nbs-flake
Open

nix: use Nix Flake from NBS repo to provide Nim#3703
jakubgs wants to merge 1 commit intomasterfrom
nix/use-nbs-flake

Conversation

@jakubgs
Copy link
Contributor

@jakubgs jakubgs commented Jan 29, 2026

This way we can avoid rebuilding Nim every time we build packages.

Compilation of libwaku with Nim: 9 minutes
Compilation of libwaku without Nim: 5 minutes

Notably this upgrades:

  • Nim from 2.2.4 to 2.2.8.
  • Zerokit from 0.9.0 to 1.0.0.

Also added CODEOWNERS file for CI and Nix configuration.

Depends on:

@jakubgs jakubgs requested a review from a team January 29, 2026 12:36
@jakubgs jakubgs self-assigned this Jan 29, 2026
@github-actions
Copy link

github-actions bot commented Jan 29, 2026

You can find the image built from this PR at

quay.io/wakuorg/nwaku-pr:3703

Built from bb27cd1

Copy link
Contributor

@markoburcul markoburcul left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Much more readable, great job. Shame that libwaku-android-arm64 can't be built, but that is not impacted by this pr:

logos-messaging-nim> Hint:  [Link]
logos-messaging-nim> ld: error: unable to find library -lrln
logos-messaging-nim> clang-14: error: linker command failed with exit code 1 (use -v to see invocation)
logos-messaging-nim> Error: execution of an external program failed: '/nix/store/hjyfpc9vzbd54fdzhv34c89bqy18s82s-androidsdk-mod-ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android30-clang  @libwaku_linkerArgs.txt'

@jakubgs jakubgs force-pushed the nix/use-nbs-flake branch 3 times, most recently from fba0b90 to e0cc2f0 Compare January 29, 2026 17:35
@jakubgs jakubgs force-pushed the nix/use-nbs-flake branch 2 times, most recently from 45ed31b to 0756c4e Compare January 30, 2026 16:23
@jakubgs jakubgs changed the base branch from master to bump-nim-lsquic January 30, 2026 16:24
@jakubgs jakubgs force-pushed the nix/use-nbs-flake branch 6 times, most recently from 4ebdd73 to d01508b Compare February 9, 2026 14:12
@github-actions
Copy link

This PR may contain changes to database schema of one of the drivers.

If you are introducing any changes to the schema, make sure the upgrade from the latest release to this change passes without any errors/issues.

Please make sure the label release-notes is added to make sure upgrade instructions properly highlight this change.

@jakubgs jakubgs changed the base branch from bump-nim-lsquic to master February 23, 2026 23:48
@jakubgs jakubgs force-pushed the nix/use-nbs-flake branch 5 times, most recently from 782df67 to 81f0338 Compare February 24, 2026 00:17
This way we can avoid rebuilding Nim every time we build packages.

Compilation of `libwaku` with Nim: 9 minutes
Compilation of `libwaku` without Nim: 5 minutes

Notably this upgrades:
- Nim from 2.2.4 to 2.2.8.
- Zerokit from 0.9.0 to 1.0.0.

Also added CODEOWNERS file for CI and Nix configuration.

Depends on:
status-im/nimbus-build-system#112

Signed-off-by: Jakub Sokołowski <jakub@status.im>
@jakubgs jakubgs force-pushed the nix/use-nbs-flake branch from 81f0338 to bf7adcb Compare March 3, 2026 10:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants