stackage2nix icon indicating copy to clipboard operation
stackage2nix copied to clipboard

Order of application of extensible-self?

Open adrianparvino opened this issue 7 years ago • 1 comments

https://github.com/typeable/stackage2nix/blob/17526c82ae05dfd81dc30b247d2b6f95d27369dc/src/Distribution/Nixpkgs/Haskell/Stack/PrettyPrinting.hs#L144

Why does configurationCommon takes precedence over the more specific packageSetConfig and compilerConfig?

adrianparvino avatar May 25 '18 00:05 adrianparvino

configurationCommon is a quick and dirty way to override a Haskell packages set generated by stackage2nix.

For example, stackage2nix generates following files for lts-10.0 packages set: https://github.com/typeable/nixpkgs-stackage/tree/master/stackage/lts-10.0

stackage/lts-10.0
├── configuration-packages.nix
├── default.nix
└── packages.nix

You can drop-in a file named configuration-common.nix to override the generated packages set. Otherwise, you'd need to import the packages and pass the overrides function as README#override-result-derivation example shows. It's probably a bad naming too, because it has nothing to do with the configurationCommon from nixpkgs.

4e6 avatar May 27 '18 15:05 4e6