haskell-flake icon indicating copy to clipboard operation
haskell-flake copied to clipboard

An easy way to add external files to Haskell source

Open srid opened this issue 1 year ago • 0 comments

Sometimes, cabal's data-files must come from outside the Git repo, such as from a flake input. To achieve this, normally we:

  1. ln -sf that file or directory in devShell's shellHook, and:
  2. add it to projectRoot so cabal2nix is aware of it.

In action: https://github.com/juspay/vira/pull/17


Can we make this simpler to configure in haskell-flake? If not, at least document this as a workflow.

srid avatar Feb 20 '25 16:02 srid