2024-05-24 17:23:15 +05:30
|
|
|
{
|
|
|
|
description = "Varnam on Nix";
|
|
|
|
|
2024-05-26 16:02:53 +05:30
|
|
|
nixConfig = {
|
|
|
|
extra-substituters = [
|
|
|
|
"https://varnam-nix.cachix.org"
|
|
|
|
];
|
|
|
|
extra-trusted-public-keys = [
|
|
|
|
"varnam-nix.cachix.org-1:IduaZzaMOJmY32L11e+a4fDDq6Xnq9/NcocAPcIbX9Y="
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
2024-05-24 17:23:15 +05:30
|
|
|
inputs = {
|
|
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
|
|
|
|
};
|
|
|
|
|
2024-05-26 16:59:15 +05:30
|
|
|
outputs = { nixpkgs, ... }:
|
|
|
|
let
|
|
|
|
pkgs = import nixpkgs {
|
|
|
|
system = "x86_64-linux";
|
|
|
|
};
|
2024-05-24 20:28:07 +05:30
|
|
|
|
2024-05-26 16:59:15 +05:30
|
|
|
packages = pkgs: rec {
|
|
|
|
libgovarnam = pkgs.callPackage ./govarnam/libgovarnam.nix { };
|
|
|
|
varnam-cli = pkgs.callPackage ./govarnam { inherit libgovarnam; };
|
|
|
|
fcitx5-varnam = pkgs.callPackage ./varnam-fcitx5 { inherit libgovarnam; };
|
|
|
|
};
|
|
|
|
in
|
|
|
|
{
|
|
|
|
formatter.x86_64-linux = pkgs.nixpkgs-fmt;
|
|
|
|
devShells.x86_64-linux.default = pkgs.mkShell {
|
|
|
|
packages = (with pkgs; [
|
|
|
|
go_1_22
|
|
|
|
gopls
|
|
|
|
gnumake
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
cmake
|
|
|
|
pkg-config
|
|
|
|
ruby
|
|
|
|
rubyPackages.ffi
|
|
|
|
python3
|
|
|
|
]) ++ (with (packages pkgs); [ libgovarnam varnam-cli ]);
|
|
|
|
};
|
|
|
|
packages.x86_64-linux = rec {
|
|
|
|
inherit (packages pkgs) libgovarnam varnam-cli fcitx5-varnam;
|
|
|
|
default = varnam-cli;
|
|
|
|
};
|
|
|
|
overlays.default = final: prev: {
|
|
|
|
inherit (packages prev) libgovarnam varnam-cli fcitx5-varnam;
|
|
|
|
};
|
|
|
|
};
|
2024-05-24 17:23:15 +05:30
|
|
|
}
|