devenv icon indicating copy to clipboard operation
devenv copied to clipboard

Exposing haskell (cabal) executables in flake

Open o1lo01ol1o opened this issue 1 year ago • 2 comments

I have a cabal project and I'd like to expose one of the build artifacts without the entire HLS dependency chain that comes with the devenv shell; what's the best way to do this going forward? callCabal2nix?

o1lo01ol1o avatar May 21 '24 21:05 o1lo01ol1o

Can you say more about how you'd like to consume the executable?

domenkozar avatar May 23 '24 15:05 domenkozar

For this particular case, I'd just expose it as part of a flake so that it can be wrapped into a systemd service that executes it. callCabal2nix seems like the easiest option but I need to overrideCabal with the derivations provided by devenv and I'm not immediately certain where everything lives.

o1lo01ol1o avatar May 23 '24 17:05 o1lo01ol1o

Now you can do that via https://devenv.sh/outputs

domenkozar avatar Nov 08 '25 16:11 domenkozar