Home Explore Blog Models CI



nixpkgs

pkgs/development/haskell-modules/replacements-by-name/README.md
b3cf41c29e4314ce6300602b0022166413ac9182ebb38cc000000003000001c4
# haskell-modules/replacements-by-name

This directory is scanned, and all `.nix` files are called in order to replace their respective packages in the `haskellPackages` set.
They're loaded after `hackage-packages.nix` but before any overrides are applied.
See [non-hackage-packages.nix](../non-hackage-packages.nix) for the implementation.

This is used for selective backports of updates, as the hackage package set won't be updated in its entirety.

Chunks
b2f346e9 (1st chunk of `pkgs/development/haskell-modules/replacements-by-name/README.md`)
Title: Haskell Package Replacements by Name Directory
Summary
The `haskell-modules/replacements-by-name` directory is designed to replace specific packages within the `haskellPackages` set. It achieves this by scanning and executing `.nix` files, which are loaded after `hackage-packages.nix` but prior to any other overrides. This mechanism is primarily utilized for selective backports of updates to Haskell packages without updating the entire Hackage package set.