Skip to content

Order of application of extensible-self? #58

Description

@adrianparvino

, attr "extensible-self" "makeExtensible (extends overrides (extends configurationCommon (extends packageSetConfig (extends compilerConfig (extends configurationNix haskellPackages)))))"

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

Activity

  1. 4e6 commented on May 27, 2018

    @4e6
    Contributor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions