diff options
| author | LLLL Colonq <llll@colonq> | 2026-05-28 20:16:38 -0400 |
|---|---|---|
| committer | LLLL Colonq <llll@colonq> | 2026-05-28 20:16:38 -0400 |
| commit | fa4d63110a3e12d0242b6e6ddcded74d04480f28 (patch) | |
| tree | 330e6ccfe650f1fd9143f9db67b481d4c74a2e05 /2026/framing/flake.nix | |
Initial commit
Diffstat (limited to '2026/framing/flake.nix')
| -rw-r--r-- | 2026/framing/flake.nix | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/2026/framing/flake.nix b/2026/framing/flake.nix new file mode 100644 index 0000000..6f46a3c --- /dev/null +++ b/2026/framing/flake.nix @@ -0,0 +1,26 @@ +{ + inputs = { + teleia.url = "github:lcolonq/teleia"; + nixpkgs.follows = "teleia/nixpkgs"; + }; + + outputs = inputs@{ self, nixpkgs, ... }: + let + system = "x86_64-linux"; + pkgs = import nixpkgs { inherit system; }; + game = inputs.teleia.native.build ./. "game_lib"; + wasm = inputs.teleia.wasm.build ./. "game_lib"; + in { + packages.${system} = { + inherit game wasm; + default = game; + }; + applications.${system}.default = { + type = "app"; + program = "${game}/bin/game"; + }; + devShells.${system}.default = inputs.teleia.shell.overrideAttrs (final: prev: { + buildInputs = prev.buildInputs; + }); + }; +} |
