Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • wp4nix wp4nix
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 1
    • Issues 1
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Helsinki Systems
  • wp4nixwp4nix
  • Merge requests
  • !4

Add scopes and more `extends`

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Janne Heß requested to merge feat/scope-and-extends into master Sep 20, 2021
  • Overview 0
  • Commits 1
  • Pipelines 1
  • Changes 1

This essentially rewrites default.nix. First off, we start using the magic of scopes and create a scope for the wordpress packages. This scope is still extensible but also contains utilitiy functions now, namely mkWordpressDerivation, mkOfficialWordpressDerivation, filterWPString, and fetchWordpress.

This way, we are exposing almost all functionality to third-party software which can extend the package set and use the existing functionality.

mkWordpressDerivation now properly calls the nixpkgs hooks and adds the package type into the pname.

We also add extend functions to all package groups (meaning you can now do plugins.extend instead of //ing it and add some overrides from helsinki here.

Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: feat/scope-and-extends