HORIZON HASKELLDocslts/ghc-9.14.x3e2d5682026-10-11Search names, modules, packages, or :: a typeCtrl K

GHC 9.14.1 · lts/ghc-9.14.x · 3e2d568 · 2026-10-11

Modulehorizon-config-shell-0.12.1GHC2024

Horizon.Config.Pretty

The pkgs/*.nix printer: a cabal2nix Derivation as the callPackage-able function nixpkgs' generic builder takes.

  • 1 type
  • 1 value

Render a derivation with, for a local package, its source, and the source patches to apply, each a Nix path literal relative to the file the derivation is written to. The patches are the generic builder's patches, exactly what haskell.lib.appendPatches would set, so the file stays a plain function of its dependencies. A local package's src is its directory, a path the evaluator reads, never a derivation it must build first; the set it is called in decides what of the directory is source. Its passthru records the .cabal it was rendered from and that file's sha256, so evaluation alone can tell whether the file is current.