Simple initiative/turn tracker
gleam
dnd
ttrpg
1{
2 inputs = {
3 nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
4 nix-gleam = {
5 url = "github:arnarg/nix-gleam";
6 inputs.nixpkgs.follows = "nixpkgs";
7 };
8 };
9
10 outputs = {
11 self,
12 nixpkgs,
13 nix-gleam,
14 ...
15 }: let
16 lib = nixpkgs.lib;
17 supportedSystems = lib.systems.flakeExposed;
18 forEachSupportedSystem = f:
19 lib.genAttrs supportedSystems (system:
20 f {
21 pkgs = import nixpkgs {inherit system;};
22 packages' = self.packages.${system};
23 inherit system;
24 });
25 in {
26 devShells = forEachSupportedSystem ({pkgs, ...}: {
27 default = pkgs.mkShell {
28 packages = with pkgs; [
29 gleam
30 beamMinimal28Packages.erlang
31 beamMinimal28Packages.rebar3
32 ];
33 };
34 });
35
36 packages = forEachSupportedSystem ({
37 pkgs,
38 system,
39 packages',
40 ...
41 }: {
42 default = packages'.xylo;
43 xylo = pkgs.callPackage ./nix/packages/xylo.nix {
44 inherit (nix-gleam.packages.${system}) buildGleamApplication;
45 };
46 });
47 };
48}