-
-
Notifications
You must be signed in to change notification settings - Fork 14.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
wordpress: packages for plugins and themes #124383
Conversation
Result of 1 package failed to build:14 packages built successfully:
29 suggestions:
Note that build failures may predate this PR, and could be nondeterministic or hardware dependent. |
I changed the package attributes according to wp4nix:
and for themes:
Most of the plugins and themes have version tags so that the zip download url is fixed to a specific version. @ajs124 @mohe2015 The pull request mentioned above looks interesting. It addresses several issues and contains breaking changes, so it's a bigger thing and maybe not so easy to merge? In how far does it relate to packaging of plugins and themes? |
People republish these versions by pushing to the same subversion tag regularly. |
This was actually a problem we faced because the plugins can update their contents without updating the version. This is one reason ajs124 wrote the script that downloads them from svn.
I'm currently waiting for #84446 to get merged and would probably try again to get it merged then. To conclude yes it's not easy to merge because of the many changes and because of the breaking changes. As ajs124 just said plugin and theme versions are not immutable. Also it's way easier to just use an automatic tool to package and update these.
The main change is the change of the directory names for plugins and themes. Other than that I would strongly recommend to use something like wp4nix (possibly with flakes) and not packaging manually at all. Adding wordpress-core relates to packaging plugins as this allows you to update the builtin plugins and themes independently of the wordpress version (and more often) Edit: Maybe I will split up my PR |
Motivation for this change
I packaged some Wordpress themes and plugins in the subset
wordpressPackages.plugins
andwordpressPackages.themes
. These packages can be used in a Wordpress installation like this:Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)