From 5bb7a961480b15440f9d590214c799b19da9aaba Mon Sep 17 00:00:00 2001 From: "Claudius \"keldu\" Holeksa" Date: Sat, 20 Sep 2025 17:29:06 +0200 Subject: Reworking structure. Adding proper C exports. Fix needed emcc is annoying me with its caching. Tries to write into /nix/store locations, which is shouldn't do. Need the proper env variable to rewrite. Otherwise it'll be ignored. --- default.nix | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'default.nix') diff --git a/default.nix b/default.nix index c2bb53f..acf40f7 100644 --- a/default.nix +++ b/default.nix @@ -3,6 +3,16 @@ , ... }: -pkgs.callPackage .nix/derivation.nix { - inherit stdenv; +let + pname = "lights_out"; + version = "0.0.0"; +in rec { + lights_out_wasm = pkgs.callPackage c++/.nix/derivation.nix { + inherit stdenv pname version; + }; + + html = pkgs.callPackage html/.nix/derivation.nix { + inherit lights_out_wasm pname version; + stdenv = pkgs.stdenvNoCC; + }; } -- cgit v1.2.3