Files
TamaASR/flake.nix
T
MeloriseandCodex 2100ebab6b feat: rename project to TamaASR 1.0.0
Migrate internal identifiers, installation paths, packaging metadata, and repository references while preserving package upgrades from meloasr.

AI-assisted-by: Codex
AI-model: gpt-5.6-sol
AI-reasoning-effort: medium
Co-authored-by: Codex <codex@openai.com>
2026-09-01 20:55:14 +08:00

41 lines
1.0 KiB
Nix

{
description = "TamaASR — web-backed voice input for Fcitx5";
inputs.nixpkgs.url = "github:Melorise/nixpkgs/nixos-unstable";
outputs = { self, nixpkgs }:
let
systems = [ "x86_64-linux" "aarch64-linux" ];
forAllSystems = nixpkgs.lib.genAttrs systems;
in {
packages = forAllSystems (system:
let pkgs = import nixpkgs { inherit system; };
in {
default = pkgs.callPackage ./packaging/nix/package.nix { };
tama-asr = self.packages.${system}.default;
});
apps = forAllSystems (system: {
default = {
type = "app";
program = "${self.packages.${system}.default}/bin/tama-asr";
};
});
devShells = forAllSystems (system:
let pkgs = import nixpkgs { inherit system; };
in {
default = pkgs.mkShell {
packages = with pkgs; [
nodejs
pnpm_11
cmake
pkg-config
fcitx5
nlohmann_json
];
};
});
};
}