mirror of
https://github.com/daylinmorgan/oizys.git
synced 2024-11-15 00:07:54 -06:00
28 lines
509 B
Nix
28 lines
509 B
Nix
{
|
|
config,
|
|
lib,
|
|
inputs,
|
|
flake,
|
|
...
|
|
}:
|
|
let
|
|
inherit (lib) mkIfIn flakeVer;
|
|
|
|
version = flakeVer inputs.roc;
|
|
cfg = config.oizys.languages;
|
|
rocPkgs = flake.pkgs "roc";
|
|
# 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
|
|
];
|
|
};
|
|
}
|