diff options
| -rw-r--r-- | 2026/README.org | 11 | ||||
| -rw-r--r-- | 2026/flake.nix | 15 |
2 files changed, 22 insertions, 4 deletions
diff --git a/2026/README.org b/2026/README.org index c475df2..42331b0 100644 --- a/2026/README.org +++ b/2026/README.org @@ -8,12 +8,17 @@ More details are available here: [[https://api.colonq.computer/jam/2026]]. Run #+begin_src shell -python3 -m http.server +cargo run #+end_src -and then open [[http://localhost:8000]]. +in this directory. This will open your web browser and load the game collection. +This will require that you have a ~cargo~ and a recent Rust toolchain installed. +If this is irritating, you can also download prebuilt binaries [[here + +In order to add your own game(s), simply create a new folder under ~./games~. +Make sure that this folder has an ~index.html~ file inside! +Restart the harness, and it should automatically detect your game and add it to the rotation. -For testing, you can add your own game to the list of game URLs at the top of [[./index.html]]. Note that this is all still very early stages, so things may evolve and churn unexpectedly. Here be dragons! diff --git a/2026/flake.nix b/2026/flake.nix index 01977ff..75bc1eb 100644 --- a/2026/flake.nix +++ b/2026/flake.nix @@ -10,9 +10,22 @@ pkgs = import nixpkgs { inherit system; }; jam = inputs.teleia.native.build ./. "jam"; windows = inputs.teleia.windows.build ./. "jam"; + nonnix = pkgs.stdenv.mkDerivation { + name = "jam-nonnix"; + phases = [ "installPhase" ]; + installPhase = '' + mkdir $out + cp -rv ${jam}/bin/jam_server $out + chmod +w $out/jam_server + patchelf --remove-rpath $out/jam_server + patchelf --set-interpreter /lib64/ld-linux-x86-64.so.2 $out/jam_server + strip $out/jam_server + chmod -w $out/jam_server + ''; + }; in { packages.${system} = { - inherit jam windows; + inherit jam windows nonnix; default = jam; }; applications.${system}.default = { |
