diff options
| author | LLLL Colonq <llll@colonq> | 2026-06-18 16:15:46 -0400 |
|---|---|---|
| committer | LLLL Colonq <llll@colonq> | 2026-06-18 16:15:46 -0400 |
| commit | c9fc2ca532c5219a087924ece1e38be19c25f006 (patch) | |
| tree | 7c9d8e32617fab6e6179fe70893a3027714ea4e7 /2026/examples/example_teleia/flake.nix | |
| parent | 068f3b9dc0522b03af534479cfa300a720ae86fa (diff) | |
Update
Diffstat (limited to '2026/examples/example_teleia/flake.nix')
| -rw-r--r-- | 2026/examples/example_teleia/flake.nix | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/2026/examples/example_teleia/flake.nix b/2026/examples/example_teleia/flake.nix new file mode 100644 index 0000000..6f46a3c --- /dev/null +++ b/2026/examples/example_teleia/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; + }); + }; +} |
