-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nix: create initial version of flake #3253
base: master
Are you sure you want to change the base?
Conversation
Hey there and thank you for opening this pull request! 👋🏼 We require pull request titles to follow the Conventional Commits specification and it looks like your proposed title needs to be adjusted. Details:
Available types:
|
I've managed to overcome building the Nim compiler using nimbus-build-system. The issue I've encountered is that pushd vendor/nimbus-build-system/vendor/Nim
mkdir dist
cp -r ${callPackage ./nimble.nix {}} dist/nimble
chmod 777 -R dist/nimble
mkdir -p dist/nimble/dist
cp -r ${callPackage ./checksums.nix {}} dist/checksums # need both
cp -r ${callPackage ./checksums.nix {}} dist/nimble/dist/checksums
cp -r ${callPackage ./atlas.nix {}} dist/atlas
chmod 777 -R dist/atlas
mkdir dist/atlas/dist
cp -r ${callPackage ./sat.nix {}} dist/nimble/dist/sat
cp -r ${callPackage ./sat.nix {}} dist/atlas/dist/sat
cp -r ${callPackage ./csources.nix {}} csources_v2
chmod 777 -R dist/nimble csources_v2
popd In |
Seems a bit different than what we had when |
94c2da2
to
f901aa0
Compare
It includes also androidndk and files needed for nimbus-build-system Referenced issue: #3232 Signed-off-by: markoburcul <[email protected]>
f901aa0
to
4699a3c
Compare
It is possible to compile using system nim, tried it on this branch for both libwaku-android-arm64 and libwaku-android-amd64: nix develop
make update
make libwaku-android-arm64 USE_SYSTEM_NIM=1 I'm still facing issue when building it: nwaku> /build/nim-2.0.12/compiler/nimblecmd.nim(144, 12) compiler msg initiated here [MsgOrigin]
nwaku> /build/source/waku.nimble(1, 2) Error: cannot open file: ""
nwaku> /build/nim-2.0.12/compiler/modulepaths.nim(75, 17) compiler msg initiated here [MsgOrigin]
nwaku> make[1]: *** [Makefile:409: build-libwaku-for-android-arch] Error 1
nwaku> make[1]: Leaving directory '/build/source'
nwaku> make: *** [Makefile:417: libwaku-android-arm64] Error 2 |
It includes also androidndk and files needed for nimbus-build-system
Referenced issue: #3232
Description
Adding Nix flake to build Android app library
How to test
nix build '?submodules=1#'
Issue
#3232
closes #