at 22.05-pre 28 lines 712 B view raw
1{ lib, stdenv, fetchurl, nixosTests }: 2 3stdenv.mkDerivation rec { 4 pname = "wordpress"; 5 version = "5.8.2"; 6 7 src = fetchurl { 8 url = "https://wordpress.org/${pname}-${version}.tar.gz"; 9 sha256 = "sha256-o9KeTmZXTHtqa/Z2KOo1n6gVCFuna42dFrvf9OBC8v8="; 10 }; 11 12 installPhase = '' 13 mkdir -p $out/share/wordpress 14 cp -r . $out/share/wordpress 15 ''; 16 17 passthru.tests = { 18 inherit (nixosTests) wordpress; 19 }; 20 21 meta = with lib; { 22 homepage = "https://wordpress.org"; 23 description = "WordPress is open source software you can use to create a beautiful website, blog, or app"; 24 license = [ licenses.gpl2 ]; 25 maintainers = [ maintainers.basvandijk ]; 26 platforms = platforms.all; 27 }; 28}