Joachim Schiele

Results 96 comments of Joachim Schiele

IIRC we required the version of jQuery we 'added' and we couldn't use the one which was coming with RT. If someone prooves this wrong, feel free to create a...

There is huge progress here since nix-instantiate 2.17 is now compiled and can evaluate. It still lacks: * integration in index.html since it has to be called differently now *...

@tomberek I need nixpkgs in that build but to get there I have to adapt the src/nix-instantiate/local.mk section like this: ```make nix-instantiate.html_LDFLAGS = \ $(shell echo "$(NIX_LDFLAGS)" | cut -f...

@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. ``` tourofnix =...

In the flake.nix I've now added: nixpkgs2211 = stdenv.mkDerivation { name = "nixpkgs-nixos-22.11-small"; src = fetchgit { url = "https://github.com/nixos/nixpkgs.git"; rev = "380be19fbd2d9079f677978361792cb25e8a3635"; sha256 = "sha256-Zffu01pONhs/pqH07cjlF10NnMDLok8ix5Uk4rhOnZQ="; }; phases = [...

Oh, symlinks don't work it seems: buildPhase = '' mkdir -p nixpkgs cp -R ${nixpkgs2211} ./nixpkgs/ du -sh nixpkgs make src/libexpr/eval.o make -j6 src/nix-instantiate/nix-instantiate.html ''; But this in fact, works!

not there yet ``` try {Module.ccall("main_nix_instantiate2","string",["string"],["with import { }; with stdenv.lib; { a=(2+2); q=lib.isList [];}"]);} catch (e) { console.log(getExceptionMessage(e).toString()); }; exception of type nix::ThrownError: �[31;1merror:�[0m … �[34;1mat �[35;1m«none»:0�[0m:�[3m (source not...

Nearly there, nixpkgs is now in the data and i can read it: ``` try {Module.ccall("main_nix_instantiate2","string",["string"],["{ a=builtins.readDir ./nixpkgs;}"]);} catch (e) { console.log(getExceptionMessage(e).toString()); }; '{"a":{"CONTRIBUTING.md":"regular","COPYING":"regular","README.md":"regular","default.nix":"regular","doc":"directory","flake.nix":"regular","lib":"directory","maintainers":"directory","nixos":"directory","pkgs":"directory"}} ' ``` Only thing left to...

https://github.com/emscripten-core/emscripten/issues/20599