From ea5929c74a4e01bcbc776832b5597fceb5261a31 Mon Sep 17 00:00:00 2001 From: LLLL Colonq Date: Tue, 28 Apr 2026 13:39:34 -0400 Subject: Initial commit --- flake.nix | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 flake.nix (limited to 'flake.nix') 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; + }); + }; +} -- cgit v1.2.3