From 308c09d41f309e5055e45c66c07454581945d458 Mon Sep 17 00:00:00 2001 From: Bas van Dijk Date: Tue, 14 Mar 2017 16:11:51 +0100 Subject: [PATCH] wordpress: security upgrade: 4.7.2 -> 4.7.3 & other improvements (#23837) * Moved the wordpress sources derivation to the attribute pkgs.wordpress. This makes it easier to override. * Also introduce the `package` option for the wordpress virtual host config which defaults to pkgs.wordpress. * Also fixed the test in nixos/tests/wordpress.nix. --- .../web-servers/apache-httpd/wordpress.nix | 20 +++++++++---------- nixos/tests/wordpress.nix | 12 ++++------- pkgs/servers/web-apps/wordpress/default.nix | 12 +++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 4 files changed, 27 insertions(+), 19 deletions(-) create mode 100644 pkgs/servers/web-apps/wordpress/default.nix diff --git a/nixos/modules/services/web-servers/apache-httpd/wordpress.nix b/nixos/modules/services/web-servers/apache-httpd/wordpress.nix index a5b6548d3c53..b94ec14308be 100644 --- a/nixos/modules/services/web-servers/apache-httpd/wordpress.nix +++ b/nixos/modules/services/web-servers/apache-httpd/wordpress.nix @@ -4,11 +4,6 @@ with lib; let - - # Upgrading? We have a test! nix-build ./nixos/tests/wordpress.nix - version = "4.7.2"; - fullversion = "${version}"; - # Our bare-bones wp-config.php file using the above settings wordpressConfig = pkgs.writeText "wp-config.php" ''