From f63cb5988f52715c9e3f59a1eba999047129ec56 Mon Sep 17 00:00:00 2001 From: toastal Date: Sat, 17 Feb 2024 14:28:57 +0700 Subject: [PATCH] movim: init at 0.24 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit I expect ðis may need some adaptations for a NixOS module, but I would like to merge in someþing building ahead of ðat task to make review easier. --- pkgs/by-name/mo/movim/package.nix | 40 +++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 pkgs/by-name/mo/movim/package.nix diff --git a/pkgs/by-name/mo/movim/package.nix b/pkgs/by-name/mo/movim/package.nix new file mode 100644 index 000000000000..985a7808b644 --- /dev/null +++ b/pkgs/by-name/mo/movim/package.nix @@ -0,0 +1,40 @@ +{ lib +, fetchFromGitHub +, php +, withPgsql ? true # “strongly recommended” according to docs +, withMysql ? false +}: + +php.buildComposerProject (finalAttrs: { + pname = "movim"; + version = "0.23"; + + src = fetchFromGitHub { + owner = "movim"; + repo = "movim"; + rev = "v${finalAttrs.version}"; + hash = "sha256-9MBe2IRYxvUuCc5m7ajvIlBU7YVm4A3RABlOOIjpKoM="; + }; + + php = php.buildEnv { + extensions = ({ all, enabled }: + enabled + ++ (with all; [ curl dom gd imagick mbstring ]) + ++ lib.optional withPgsql all.pgsql + ++ lib.optional withMysql all.mysqli + ); + }; + + # no listed license + # pinned commonmark + composerStrictValidation = false; + + vendorHash = "sha256-PBoJbVuF0Qy7nNlL4yx446ivlZpPYNIai78yC0wWkCM="; + + meta = { + description = "a federated blogging & chat platform that acts as a web front end for the XMPP protocol"; + homepage = "https://movim.eu"; + license = lib.licenses.agpl3; + maintainers = with lib.maintainers; [ toastal ]; + }; +})