-
-
Notifications
You must be signed in to change notification settings - Fork 13.7k
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
wp4nix: init at 1.0.0 #169183
wp4nix: init at 1.0.0 #169183
Conversation
I don't care in this case but generally you have to take care with authorship and copyright. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
705a6f1 is the original commit packaging this and attribution should be given.
What is the best way to give attribution? |
Either cherry-pick the original commit and if you made significant changes you can add yourself to Or you correct the author of the existing commit by running |
As (probably?) the main author of wp4nix, I have a simple question: why would you want this in nixpkgs? |
See here #135966 |
I don't think I want every wordpress plugin and theme in nixpkgs, tbh. If you look at the commits our CI pushes, the churn on those is huge. Also, I don't really recommend anyone to run wp4nix, the program, either. If you look at what it does, it causes a lot of traffic for wordpress.org and having one instance of it running every day is more than enough. I obviously can't and won't stop you from putting this package in nixpkgs, but as the upstream, these are my opinions. |
Will answer tomorrow as I was heavily involved. |
My 5 cents: If our wordpress support is mediocre and cannot be extended in a declarative fashion with themes/extensions, why are we keeping it in the first place? Then I'll assume that people are better off using a dumb container and Wordpress' auto update functionality. |
At first I just used fetchzip with the official zip archives. Then you (#96910 (comment)) told me that they republish zips so this would've caused problems. I could've probably used fetchSvn or however it's called but it seemed like wp4nix was a better solution as it made it easier to autoupdate. I'm now using this in #135966 to fetch the official themes/extensions so you can update them independently of the wordpress distribution. So we're not actually telling anyone to run it to fetch the full set of themes and extensions. |
I think it can be extended in a declarative fashion see #135966. I also think that this is beneficial as it allows you to only serve a read only version of the php files so they can't be overwritten that easily. Also it allows you to actually declaratively roll back your system configuration. There are a few problems though with extensions/themes that write to places they shouldn't or do other weird stuff. But I think this is just normal packaging issues like other packages that e.g. fetch stuff while building etc. For some (probably quite a few people who don't want to spend the effort to fix their extensions) just serving the upstream php files may be easier yes. But I think it's still beneficial to provide the possibility to do this in a more declarative way. |
Description of changes
This PR adds the tool wp4nix. It helps packaging wordpress plugins and themes for NixOS.
Things done
sandbox = true
set innix.conf
? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)nixos/doc/manual/md-to-db.sh
to update generated release notes