First slice: classes, combat, questing, Deadmines
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
commit
71dd99795a
17 changed files with 4522 additions and 0 deletions
36
flake.nix
Normal file
36
flake.nix
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
{
|
||||
description = "World of Guildhall: a co-op adventure for a small group of friends";
|
||||
|
||||
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-26.05";
|
||||
|
||||
outputs = { self, nixpkgs }:
|
||||
let
|
||||
forAllSystems = nixpkgs.lib.genAttrs [ "x86_64-linux" "aarch64-linux" ];
|
||||
in
|
||||
{
|
||||
packages = forAllSystems (system:
|
||||
let pkgs = import nixpkgs { inherit system; };
|
||||
in {
|
||||
default = pkgs.callPackage ./package.nix { };
|
||||
wog = self.packages.${system}.default;
|
||||
});
|
||||
|
||||
nixosModules.default = import ./module.nix self;
|
||||
nixosModules.wog = self.nixosModules.default;
|
||||
|
||||
checks = forAllSystems (system:
|
||||
let pkgs = import nixpkgs { inherit system; };
|
||||
in {
|
||||
inherit (self.packages.${system}) default;
|
||||
tests = pkgs.runCommand "wog-tests" { nativeBuildInputs = [ pkgs.python3 pkgs.nodejs ]; } ''
|
||||
cp -r ${self} source
|
||||
chmod -R u+w source
|
||||
cd source
|
||||
python3 -m unittest discover -s tests -v
|
||||
python3 -m py_compile app.py game.py combat.py content.py
|
||||
node --check static/app.js
|
||||
touch $out
|
||||
'';
|
||||
});
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue