oizys/modules/languages/roc.nix

29 lines
507 B
Nix
Raw Normal View History

2024-06-12 10:42:18 -05:00
{
config,
lib,
inputs,
2024-07-27 11:45:03 -05:00
flake,
2024-06-12 10:42:18 -05:00
...
}:
let
2024-07-18 10:18:32 -05:00
inherit (lib) mkIfIn flakeVer;
version = flakeVer inputs.roc;
2024-06-12 10:42:18 -05:00
cfg = config.oizys.languages;
2024-07-27 11:45:03 -05:00
rocPkgs = flake.pkgs "roc";
2024-07-18 10:18:32 -05:00
# I'm setting the versions so the changes are more apparent as flake is updated
roc = rocPkgs.cli.overrideAttrs {
inherit version;
};
2024-07-18 11:46:02 -05:00
lang-server = rocPkgs.lang-server.overrideAttrs { inherit version; };
2024-06-12 10:42:18 -05:00
in
{
config = mkIfIn "roc" cfg {
2024-07-18 11:46:02 -05:00
environment.systemPackages = [
roc
lang-server
];
2024-06-12 10:42:18 -05:00
};
}