diff options
author | Aaron Andersen <aaron@fosslib.net> | 2019-05-28 17:38:34 -0400 |
---|---|---|
committer | Aaron Andersen <aaron@fosslib.net> | 2019-07-03 11:47:33 -0400 |
commit | e1857b78081a65ccf496c9d9e22ec401db526485 (patch) | |
tree | 84253edac3b88ab845fbd1ebd82f0d7ae4ceb548 /pkgs/servers/web-apps | |
parent | 7bd65a15f0e29aaaa29ee9e7dc6d7b4417ff8ba0 (diff) |
wordpress: 5.02 -> 5.2.2
Diffstat (limited to 'pkgs/servers/web-apps')
-rw-r--r-- | pkgs/servers/web-apps/wordpress/default.nix | 33 |
1 files changed, 22 insertions, 11 deletions
diff --git a/pkgs/servers/web-apps/wordpress/default.nix b/pkgs/servers/web-apps/wordpress/default.nix index 3a721b7339076..4a9af9d329cc2 100644 --- a/pkgs/servers/web-apps/wordpress/default.nix +++ b/pkgs/servers/web-apps/wordpress/default.nix @@ -1,13 +1,24 @@ - # Upgrading? We have a test! nix-build ./nixos/tests/wordpress.nix -{ fetchFromGitHub, lib } : fetchFromGitHub { - owner = "WordPress"; - repo = "WordPress"; - rev = "5.0.2"; - sha256 = "1r8y62mdv6ji82hcn94gngi68mwilxh69gpx8r83k0cy08s99sln"; - meta = { - homepage = https://wordpress.org; - description = "WordPress is open source software you can use to create a beautiful website, blog, or app."; - license = lib.licenses.gpl2; - maintainers = [ lib.maintainers.basvandijk ]; +{ stdenv, fetchurl }: + +stdenv.mkDerivation rec { + pname = "wordpress"; + version = "5.2.2"; + + src = fetchurl { + url = "https://wordpress.org/${pname}-${version}.tar.gz"; + sha256 = "08iilbvf1gam2nmacj0a8fgldnd2gighmslf9sny8dsdlqlwjgvq"; + }; + + installPhase = '' + mkdir -p $out/share/wordpress + cp -r . $out/share/wordpress + ''; + + meta = with stdenv.lib; { + homepage = "https://wordpress.org"; + description = "WordPress is open source software you can use to create a beautiful website, blog, or app"; + license = [ licenses.gpl2 ]; + maintainers = [ maintainers.basvandijk ]; + platforms = platforms.all; }; } |