-
Notifications
You must be signed in to change notification settings - Fork 12
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
integrate more recent nix version #22
Comments
There is huge progress here since nix-instantiate 2.17 is now compiled and can evaluate. It still lacks:
|
@tomberek I need nixpkgs in that build but to get there I have to adapt the src/nix-instantiate/local.mk section like this: nix-instantiate.html_LDFLAGS = \
$(shell echo "$(NIX_LDFLAGS)" | cut -f 5- -d' ') \
-lcrypto \
-sNO_EXIT_RUNTIME=1 \
-sALLOW_MEMORY_GROWTH=1 \
-sEXPORTED_RUNTIME_METHODS=cwrap,ccall,UTF8ToString,ptrToString,allocateUTF8,UTF32ToString \
-sEXPORTED_FUNCTIONS=_processExpr,_main_nix_instantiate2 \
-sEXPORT_EXCEPTION_HANDLING_HELPERS \
--preload-file nixpkgs \
--preload-file test.nix \
--preload-file derivation.nix And this makes our current attempt at generalizing the build much more problematic. To my knowledge there is no:
You get it... Let's see how we can work around this. |
@tomberek A solution could be to make nix-instantiate a library, which is stored in the derivation, then using another mkDerivation use this to build the final artifact.
Which strongly suggests days of Type III Fun -> https://www.rei.com/blog/climb/fun-scale |
In the flake.nix I've now added:
the nix build phase has now:
and inside the src/nix-instantiate/local.mk i've tried various variants:
not sure
it is troublesome that i have to wait soooo long for every try. should probably make nix-instantiate into a library and then use that from another project for faster turnaround times. roundtrip time on my machine is:
don't know how to debug this tbh |
Oh, symlinks don't work it seems:
But this in fact, works! |
not there yet
|
Nearly there, nixpkgs is now in the data and i can read it:
Only thing left to do is adding the parameters to nix-instantiate.cc in:
|
Using the awesome work from @tomberek aka Thomas Bereknyei we can adapt to a newer version of nix in the tour:
https:/flox/nix/tree/wasm
To try it out:
The text was updated successfully, but these errors were encountered: