Add Extra Build Tools to Haskell.nix Project

Table of Contents

1 Why

Sometimes you will need some extra tools to build your project. For the RecordDotSyntax feature, you will need a ghc plugin or a pre processer to build.

2 Cabal build-tool-depends

This flag is used by cabal, but looks like cabal only builds the library but won’t add the executable into the PATH during the following build process. There is a issue to track this: https://github.com/haskell/cabal/issues/8434

3 haskell.nix executableToolDepends

There also is a issue track in haskell.nix: https://github.com/input-output-hk/haskell.nix/issues/839

Date: 2025-10-24

Author: Chen Jin Fen

Emacs 27.1 (Org mode 9.3)