summary refs log tree commit diff
path: root/nixos/modules/services/web-servers/apache-httpd
diff options
context:
space:
mode:
authorGraham Christensen <graham@grahamc.com>2016-09-26 18:06:56 -0400
committerGraham Christensen <graham@grahamc.com>2016-09-26 19:36:07 -0400
commit4671806183e05e839fa4fe9459079ad527e52905 (patch)
tree8259bd57c2cc42e7493278e2cd7c68778c8b3408 /nixos/modules/services/web-servers/apache-httpd
parentd4c66e2f46b248d55313105f09d25e5a1d304337 (diff)
downloadnixlib-4671806183e05e839fa4fe9459079ad527e52905.tar
nixlib-4671806183e05e839fa4fe9459079ad527e52905.tar.gz
nixlib-4671806183e05e839fa4fe9459079ad527e52905.tar.bz2
nixlib-4671806183e05e839fa4fe9459079ad527e52905.tar.lz
nixlib-4671806183e05e839fa4fe9459079ad527e52905.tar.xz
nixlib-4671806183e05e839fa4fe9459079ad527e52905.tar.zst
nixlib-4671806183e05e839fa4fe9459079ad527e52905.zip
wordpress: 4.3.1 -> 4.6.1 + add a test
Diffstat (limited to 'nixos/modules/services/web-servers/apache-httpd')
-rw-r--r--nixos/modules/services/web-servers/apache-httpd/wordpress.nix11
1 files changed, 6 insertions, 5 deletions
diff --git a/nixos/modules/services/web-servers/apache-httpd/wordpress.nix b/nixos/modules/services/web-servers/apache-httpd/wordpress.nix
index 937b2698ce9b..007c7669d8ac 100644
--- a/nixos/modules/services/web-servers/apache-httpd/wordpress.nix
+++ b/nixos/modules/services/web-servers/apache-httpd/wordpress.nix
@@ -5,7 +5,8 @@ with lib;
 
 let
 
-  version = "4.3.1";
+  # Upgrading? We have a test! nix-build ./nixos/tests/wordpress.nix
+  version = "4.6.1";
   fullversion = "${version}";
 
   # Our bare-bones wp-config.php file using the above settings
@@ -74,7 +75,7 @@ let
       owner = "WordPress";
       repo = "WordPress";
       rev = "${fullversion}";
-      sha256 = "1rk10vcv4z9p04hfzc0wkbilrgx7m9ssyr6c3w6vw3vl1bcgqxza";
+      sha256 = "0n82xgjg1ry2p73hhgpslnkdzrma5n6hxxq76s7qskkzj0qjfvpn";
     };
     installPhase = ''
       mkdir -p $out
@@ -98,7 +99,7 @@ let
       # symlink additional plugin(s)
       ${concatMapStrings (plugin: "ln -s ${plugin} $out/wp-content/plugins/${plugin.name}\n") (config.plugins) }
 
-      # symlink additional translation(s) 
+      # symlink additional translation(s)
       mkdir -p $out/wp-content/languages
       ${concatMapStrings (language: "ln -s ${language}/*.mo ${language}/*.po $out/wp-content/languages/\n") (selectedLanguages) }
     '';
@@ -123,7 +124,7 @@ in
   options = {
     dbHost = mkOption {
       default = "localhost";
-      description = "The location of the database server.";  
+      description = "The location of the database server.";
       example = "localhost";
     };
     dbName = mkOption {
@@ -253,7 +254,7 @@ in
       done
       ${pkgs.mysql}/bin/mysql -e 'CREATE DATABASE ${config.dbName};'
       ${pkgs.mysql}/bin/mysql -e 'GRANT ALL ON ${config.dbName}.* TO ${config.dbUser}@localhost IDENTIFIED BY "${config.dbPassword}";'
-    else 
+    else
       echo "Good, no need to do anything database related."
     fi
   '';