oizys/modules/languages/roc.nix
2024-07-18 11:46:02 -05:00

29 lines
527 B
Nix

{
config,
lib,
pkgs,
inputs,
...
}:
let
inherit (lib) mkIfIn flakeVer;
version = flakeVer inputs.roc;
cfg = config.oizys.languages;
rocPkgs = inputs.roc.packages.${pkgs.system};
# I'm setting the versions so the changes are more apparent as flake is updated
roc = rocPkgs.cli.overrideAttrs {
inherit version;
};
lang-server = rocPkgs.lang-server.overrideAttrs { inherit version; };
in
{
config = mkIfIn "roc" cfg {
environment.systemPackages = [
roc
lang-server
];
};
}