haskell-flake
haskell-flake copied to clipboard
An easy way to add external files to Haskell source
Sometimes, cabal's data-files must come from outside the Git repo, such as from a flake input. To achieve this, normally we:
-
ln -sfthat file or directory in devShell'sshellHook, and: - add it to
projectRootsocabal2nixis 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.