varnam-nix/flake.nix

40 lines
1 KiB
Nix
Raw Normal View History

2024-05-24 17:23:15 +05:30
{
description = "Varnam on Nix";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { nixpkgs, flake-utils, ... }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs {
inherit system;
};
2024-05-24 20:28:07 +05:30
packages = rec {
2024-05-25 00:16:21 +05:30
libgovarnam = pkgs.callPackage ./govarnam/libgovarnam.nix { selected_schemes = [ "ml" ]; };
2024-05-24 20:28:07 +05:30
varnam-cli = pkgs.callPackage ./govarnam { inherit libgovarnam; };
fcitx5-varnam = pkgs.callPackage ./varnam-fcitx5 { inherit libgovarnam; };
};
2024-05-24 17:23:15 +05:30
in
{
formatter = pkgs.nixpkgs-fmt;
2024-05-24 17:23:42 +05:30
devShells.default = pkgs.mkShell {
2024-05-24 20:28:07 +05:30
packages = (with pkgs; [
2024-05-24 17:23:42 +05:30
go_1_22
gnumake
meson
ninja
cmake
pkg-config
2024-05-24 22:54:00 +05:30
]) ++ (with packages; [ libgovarnam varnam-cli ]);
2024-05-24 17:23:42 +05:30
};
2024-05-24 20:28:07 +05:30
packages = {
inherit (packages) libgovarnam varnam-cli fcitx5-varnam;
2024-05-24 17:23:15 +05:30
};
}
);
}