@@ -5,7 +5,8 @@ with lib;
55
66let
77
8− version = "4.3.1";
8+ # Upgrading? We have a test! nix-build ./nixos/tests/wordpress.nix
9+ version = "4.6.1";
910 fullversion = "${version}";
1011
1112 # Our bare-bones wp-config.php file using the above settings
@@ -74,7 +75,7 @@ let
7475 owner = "WordPress";
7576 repo = "WordPress";
7677 rev = "${fullversion}";
77− sha256 = "1rk10vcv4z9p04hfzc0wkbilrgx7m9ssyr6c3w6vw3vl1bcgqxza";
78+ sha256 = "0n82xgjg1ry2p73hhgpslnkdzrma5n6hxxq76s7qskkzj0qjfvpn";
7879 };
7980 installPhase = ''
8081 mkdir -p $out
@@ -98,7 +99,7 @@ let
9899 # symlink additional plugin(s)
99100 ${concatMapStrings (plugin: "ln -s ${plugin} $out/wp-content/plugins/${plugin.name}\n") (config.plugins) }
100101
101− # symlink additional translation(s)
102+ # symlink additional translation(s)
102103 mkdir -p $out/wp-content/languages
103104 ${concatMapStrings (language: "ln -s ${language}/*.mo ${language}/*.po $out/wp-content/languages/\n") (selectedLanguages) }
104105 '';
@@ -123,7 +124,7 @@ in
123124 options = {
124125 dbHost = mkOption {
125126 default = "localhost";
126− description = "The location of the database server.";
127+ description = "The location of the database server.";
127128 example = "localhost";
128129 };
129130 dbName = mkOption {
@@ -253,7 +254,7 @@ in
253254 done
254255 ${pkgs.mysql}/bin/mysql -e 'CREATE DATABASE ${config.dbName};'
255256 ${pkgs.mysql}/bin/mysql -e 'GRANT ALL ON ${config.dbName}.* TO ${config.dbUser}@localhost IDENTIFIED BY "${config.dbPassword}";'
256− else
257+ else
257258 echo "Good, no need to do anything database related."
258259 fi
259260 '';