balsoft / lambda-launcher

Application launcher in haskell. Mostly Just For Fun.
The Unlicense
72 stars 6 forks source link

nix-shell cabal #13

Open srid opened 3 years ago

srid commented 3 years ago

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.

balsoft commented 3 years ago

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

balsoft commented 3 years ago

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.