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. --- html/.nix/derivation.nix | 16 ++++++++++++++++ html/lights_out.html | 1 + 2 files changed, 17 insertions(+) create mode 100644 html/.nix/derivation.nix create mode 100644 html/lights_out.html (limited to 'html') diff --git a/html/.nix/derivation.nix b/html/.nix/derivation.nix new file mode 100644 index 0000000..607c595 --- /dev/null +++ b/html/.nix/derivation.nix @@ -0,0 +1,16 @@ +{ stdenv +, lights_out_wasm +, pname +, version +}: + +stdenv.mkDerivation { + inherit pname version; + + src = ./..; + + installPhase = '' + mkdir $out + touch $out/side + ''; +} diff --git a/html/lights_out.html b/html/lights_out.html new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/html/lights_out.html @@ -0,0 +1 @@ + -- cgit v1.2.3