30 lines
638 B
Nix
30 lines
638 B
Nix
{
|
|
description = "Battle for 'Tismo — Node.js game server and HTML5 web client";
|
|
|
|
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;
|
|
};
|
|
}
|