nixpkgs/pkgs/servers/web-apps/wordpress/packages
Janne Heß fcc95ff817 treewide: Fix all Nix ASTs in all markdown files
This allows for correct highlighting and maybe future automatic
formatting. The AST was verified to work with nixfmt only.
2024-03-28 09:28:12 +01:00
..
default.nix wordpressPackages: add license information 2024-02-02 14:12:20 +01:00
generate.sh wordpressPackages: add license information 2024-02-02 14:12:20 +01:00
languages.json wordpressPackages.plugins.simple-mastodon-verification: init at 1.1.3 2023-12-23 12:15:38 +01:00
plugins.json wordpressPackages.plugins.simple-mastodon-verification: init at 1.1.3 2023-12-23 12:15:38 +01:00
README.md treewide: Fix all Nix ASTs in all markdown files 2024-03-28 09:28:12 +01:00
themes.json wordpressPackages: update 2023-11-14 18:09:34 +01:00
thirdparty.nix wordpressPackages: add license information 2024-02-02 14:12:20 +01:00
wordpress-languages.json wordpressPackages: add license information 2024-02-02 14:12:20 +01:00
wordpress-plugins.json wordpressPackages: add license information 2024-02-02 14:12:20 +01:00
wordpress-themes.json wordpressPackages: add license information 2024-02-02 14:12:20 +01:00

= Adding plugin, theme or language =

To extend the wordpressPackages set, add a new line to the corresponding json file with the codename of the package:

  • wordpress-languages.json for language packs
  • wordpress-themes.json for themes
  • wordpress-plugins.json for plugins

The codename is the last part in the url of the plugin or theme page, for example cookie-notice in in the url https://wordpress.org/plugins/cookie-notice/ or twentytwenty in https://wordpress.org/themes/twentytwenty/.

In case of language packages, the name consists of country and language codes. For example de_DE for country code de (Germany) and language DE (German). For available translations and language codes see upstream translation repository.

To regenerate the nixpkgs wordpressPackages set, run:

./generate.sh

After that you can commit and submit the changes.

= Usage with the Wordpress module =

The plugins will be available in the namespace wordpressPackages.plugins. Using it together with the Wordpress module could look like this:

{
  services.wordpress = {
    sites."blog.${config.networking.domain}" = {
      plugins = with pkgs.wordpressPackages.plugins; [
        anti-spam-bee
        code-syntax-block
        cookie-notice
        lightbox-with-photoswipe
        wp-gdpr-compliance
      ];
    };
  };
}

The same scheme applies to themes and languages.