diff options
Diffstat (limited to 'flake.nix')
| -rw-r--r-- | flake.nix | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..c52e2c0 --- /dev/null +++ b/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; }; + kharcho = inputs.teleia.native.build ./. "kharcho"; + wasm = inputs.teleia.wasm.build ./. "kharcho"; + in { + packages.${system} = { + inherit kharcho wasm; + default = kharcho; + }; + applications.${system}.default = { + type = "app"; + program = "${kharcho}/bin/kharcho"; + }; + devShells.${system}.default = inputs.teleia.shell.overrideAttrs (final: prev: { + buildInputs = prev.buildInputs; + }); + }; +} |
