Initial commit
Server-authoritative Godot 4.6 strategy game. Includes the headless WebSocket game server, the browser client, and Nix packaging (server and web-export derivations plus a NixOS module) for deployment.
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
{
|
||||
description = "Battle for 'Tismo — dedicated server and web client";
|
||||
|
||||
# Must provide Godot 4.6 and matching export templates. nixos-26.05 does.
|
||||
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-26.05";
|
||||
|
||||
outputs =
|
||||
{ self, nixpkgs }:
|
||||
let
|
||||
systems = [
|
||||
"x86_64-linux"
|
||||
"aarch64-linux"
|
||||
];
|
||||
in
|
||||
{
|
||||
packages = nixpkgs.lib.genAttrs systems (
|
||||
system:
|
||||
let
|
||||
pkgs = import nixpkgs { inherit system; };
|
||||
built = pkgs.callPackage ./nix/package.nix { };
|
||||
in
|
||||
{
|
||||
inherit (built) server web;
|
||||
default = built.server;
|
||||
}
|
||||
);
|
||||
|
||||
nixosModules.default = import ./nix/module.nix;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user