varnam-nix/flake.nix

57 lines
1.5 KiB
Nix
Raw Normal View History

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";
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 { };
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;
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
}
);
}