lambda-launcher icon indicating copy to clipboard operation
lambda-launcher copied to clipboard

nix-shell cabal

Open srid opened this issue 5 years ago • 2 comments

I'm not too familar with flakes, but any chance we can get cabal (using project dependencies) installed in nix-shell, in the manner of nixpkgs? This would enable local development with full IDE support.

srid avatar Nov 04 '20 21:11 srid

I'm surprised it's not available. I'll look into it.

balsoft avatar Nov 04 '20 21:11 balsoft

Actually, it looks like the nixpkgs builder doesn't use cabal directly. So, I guess I could add cabal-install to buildInputs of devShell (this will result in nix-shell having cabal in PATH). However, I don't really like this solution because e.g. I use ghc -threaded Main from within nix-shell to iteratively build and develop lambda-launcher.

balsoft avatar Nov 04 '20 22:11 balsoft