Closed 3noch closed 3 years ago
Adding this to flake.nix
seems to work:
devShell = pkgs.mkShell {
buildInputs = [ pkgs.idris2.packages.lsp ];
buildInputsFrom = [ mypkg ];
};
Do you have some other overlay active? I can't find buildInputsFrom
, but it looks useful.
I've started using something like this, but I'm still not quite happy with it:
{
devShell = pkgs.mkShell {
buildInputs = [
(pkgs.idris2.packages.lsp.withPackages (p: mypkg.idrisLibraries))
];
};
}
I mistyped. It's actually inputsFrom
: https://nixos.org/manual/nixpkgs/stable/#sec-pkgs-mkShell
Current approach, as in the new project tutorial, is to use
{
buildInputs = [ (idris2-pkgs._builders.devEnv mypkg) ];
}
I'm very new to nix flakes and I'm struggling to find out how I might have a shell where idris2-lsp is available for my IDE.