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-26 15:41:55 +05:30
|
|
|
libgovarnam = pkgs.callPackage ./govarnam/libgovarnam.nix { };
|
2024-05-26 15:57:45 +05:30
|
|
|
varnam-cli = pkgs.callPackage ./govarnam { inherit libgovarnam; };
|
2024-05-24 20:28:07 +05:30
|
|
|
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
|
2024-05-26 15:41:55 +05:30
|
|
|
gopls
|
2024-05-24 17:23:42 +05:30
|
|
|
gnumake
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
cmake
|
|
|
|
pkg-config
|
2024-05-26 15:41:55 +05:30
|
|
|
ruby
|
|
|
|
rubyPackages.ffi
|
|
|
|
python3
|
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-26 15:57:45 +05:30
|
|
|
default = packages.varnam-cli;
|
2024-05-24 17:23:15 +05:30
|
|
|
};
|
2024-05-26 15:57:54 +05:30
|
|
|
overlays.default = final: prev: {
|
|
|
|
inherit (packages) libgovarnam varnam-cli fcitx5-varnam;
|
|
|
|
};
|
2024-05-24 17:23:15 +05:30
|
|
|
}
|
|
|
|
);
|
|
|
|
}
|