64 Commits

Author SHA1 Message Date
Ivan Folgueira Bande
98b738c9c2
flake.nix: completely avoid adding android objects in macos
That produces a super long object file path which overpasses
the one hundred char size limit on macos ar utility
2025-10-25 00:44:34 +02:00
Ivan Folgueira Bande
b9114ec917
Makefile set proper lib extension depending on platform etc 2025-10-24 20:59:08 +02:00
cb472bc829
nix: fix Android builds on Darwin platforms
The assert for Android NDK is obsolete. But we also can avoid fetching
the Android dependencies when not building for Android.

Also, lsb-release is a linux-only tool.

Signed-off-by: Jakub Sokołowski <jakub@status.im>
2025-10-24 17:27:49 +02:00
a8060c5600
nix: do not add android SDK on aarch64 Darwin
Otherwise it fails with:

error: aarch64-darwin not supported for Android SDK. Use: NIXPKGS_SYSTEM_OVERRIDE=x86_64-darwin

Signed-off-by: Jakub Sokołowski <jakub@status.im>
2025-10-24 12:29:56 +02:00
2a216f3eb5
nix: fix targets to not be nested under androidPackages
Otherwise this happens:

 > nix flake show
error: expected a derivation

Signed-off-by: Jakub Sokołowski <jakub@status.im>
2025-10-24 12:26:02 +02:00
Ivan Folgueira Bande
f3b084103d
try to add windows in default.nix 2025-10-22 02:33:19 +02:00
Ivan Folgueira Bande
9fa8c7cd64
add windows in flake.nix 2025-10-22 02:13:39 +02:00
Ivan Folgueira Bande
52966cb874
flake nix allow build for all four archs 2025-10-21 03:10:08 +02:00
Ivan Folgueira Bande
35c0f1964d
nix add all unix status go supported platforms 2025-10-21 02:55:09 +02:00
Ivan FB
972d7862fc
include libsds.h in the resulting nix package 2025-10-15 19:56:13 +02:00
Ivan Folgueira Bande
27a2caecaf
adjust as per comments 2025-10-15 19:54:09 +02:00
Ivan Folgueira Bande
68dcde059d
adjust as per comments 2025-10-15 19:53:27 +02:00
Ivan Folgueira Bande
8b6b4046fb
adjust 2025-10-15 19:51:02 +02:00
Ivan Folgueira Bande
2f7fc614d2
include header 2025-10-15 19:47:48 +02:00
c1e47fd449
nix: add Gh workflow for building Flake packages
Important if `status-go` is consume the Nix Flake.

Signed-off-by: Jakub Sokołowski <jakub@status.im>
2025-10-15 18:34:38 +02:00
Ivan Folgueira Bande
87d5716ac6
nix: fix builds of libsds for host and android
For some unknown reason the builds would fail with:

/bin/sh: line 1: clang: command not found

Unless we added Android NDK toolchains/llvm/prebuilt to PATH.

Signed-off-by: Jakub Sokołowski <jakub@status.im>
2025-10-15 18:24:02 +02:00
Ivan FB
4f03aad10b
set compiler properly in Makefile for Android
set compiler properly in Makefile for Android
2025-10-15 17:27:22 +02:00
Ivan Folgueira Bande
c5d3689b53
set compiler properly in Makefile for Android 2025-10-15 17:01:36 +02:00
Ivan FB
b74622da64
Merge pull request #29 from waku-org/add-nix-config 2025-10-15 11:28:06 +02:00
Ivan Folgueira Bande
7b47db3378
add flake.lock 2025-10-15 11:20:43 +02:00
Ivan Folgueira Bande
a856026dbd
add flake.nix 2025-10-15 11:17:02 +02:00
Ivan Folgueira Bande
23d001adb9
better format in README.md 2025-09-17 16:24:34 +02:00
Ivan FB
b03e0dcff4
Merge pull request #28 from waku-org/update-readme
chore: update readme with instructions how to build
2025-09-17 16:20:21 +02:00
Ivan FB
26d1b73931
Update README.md
Co-authored-by: Hanno Cornelius <68783915+jm-clius@users.noreply.github.com>
2025-09-17 16:20:00 +02:00
Ivan Folgueira Bande
57a89ac375
update readme with instructions how to build 2025-09-17 10:36:47 +02:00
Ivan FB
19caff6ed5
Merge pull request #27 from waku-org/add-windows-support
add windows support
2025-09-17 10:02:13 +02:00
Ivan FB
a457909569
add windows support 2025-09-11 14:30:08 +02:00
Ivan FB
1b005ee9ab
Merge pull request #24 from waku-org/add-android-support
Add android support
2025-09-10 23:52:38 +02:00
Ivan Folgueira Bande
1d93b369ad
sds.nimble properly export libsdsNimMain function 2025-08-29 20:08:16 +02:00
Ivan Folgueira Bande
0494cafc96
sds.nimble ensure the resulting lib is placed in build folder 2025-08-28 18:53:19 +02:00
Ivan Folgueira Bande
6cb5033d53
Makefile arch-dependant build 2025-08-28 14:44:59 +02:00
Ivan Folgueira Bande
845a35217c
only target amd64 in Makefile 2025-08-28 11:55:04 +02:00
Ivan Folgueira Bande
39ab3b9ab4
only support arm64-v8a for now 2025-08-28 11:00:54 +02:00
Ivan Folgueira Bande
e069e25c6c
Makefile pass target to compiler and linker 2025-08-28 01:47:05 +02:00
Ivan Folgueira Bande
3dd3f28a8b
pass ARCH_DIRNAME properly 2025-08-28 01:22:37 +02:00
Ivan Folgueira Bande
3af1a228e5
Makefile: properly passing ARCH_DIRNAME 2025-08-28 01:12:07 +02:00
Ivan Folgueira Bande
27ca8c137e
correcting Android include and lib paths 2025-08-28 00:55:20 +02:00
Ivan Folgueira Bande
29072f63ef
Makefile: passing ndk lib to linker 2025-08-28 00:01:10 +02:00
Ivan Folgueira Bande
bcabc4ae50
Makefile add abidir dependant include folder 2025-08-27 23:44:00 +02:00
Ivan Folgueira Bande
b3870f00c6
Makefile trying to pass the sysroot 2025-08-27 23:20:51 +02:00
Ivan Folgueira Bande
99c7d6ad10
-I Makefile 2025-08-27 22:57:48 +02:00
Ivan Folgueira Bande
160f9a443f
different way to pass isystem 2025-08-27 22:37:53 +02:00
Ivan Folgueira Bande
3787c1458a
backslashed double quote in Makefile 2025-08-27 22:09:37 +02:00
Ivan Folgueira Bande
55cf7120fe
Makefile avoid double-single-quote 2025-08-27 21:55:09 +02:00
Ivan Folgueira Bande
0232818163
Makefile trying single quotes 2025-08-27 21:43:59 +02:00
Ivan Folgueira Bande
6203dbec56
trying isystem in Makefile 2025-08-27 21:27:40 +02:00
Ivan Folgueira Bande
6c8069f36c
multiple passC 2025-08-27 21:10:45 +02:00
Ivan Folgueira Bande
8ee27a36b9
only use nostdinc in Makefile 2025-08-27 20:58:13 +02:00
Ivan Folgueira Bande
ccbbe1a4e0
Makefile try nostdinc param 2025-08-27 20:48:12 +02:00
Ivan Folgueira Bande
8c34f85043
Makefile: avoid passing invalid sysroot option to compiler 2025-08-27 20:05:33 +02:00