blob: 6f46a3c88659cb7a88ac2f798a10dc489580a619 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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;
});
};
}
|