From 122b38d6642b2aea923c796e36e8924006519768 Mon Sep 17 00:00:00 2001 From: Sh0g0-1758 Date: Sat, 28 Sep 2024 09:49:32 +0530 Subject: [PATCH] agorakit: init at 1.9.2 --- pkgs/by-name/ag/agorakit/package.nix | 40 ++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 pkgs/by-name/ag/agorakit/package.nix diff --git a/pkgs/by-name/ag/agorakit/package.nix b/pkgs/by-name/ag/agorakit/package.nix new file mode 100644 index 000000000000..f4d478876443 --- /dev/null +++ b/pkgs/by-name/ag/agorakit/package.nix @@ -0,0 +1,40 @@ +{ + lib, + fetchFromGitHub, + php, + dataDir ? "/var/lib/agorakit", +}: + +php.buildComposerProject (finalAttrs: { + pname = "agorakit"; + version = "1.9.2"; + + src = fetchFromGitHub { + owner = finalAttrs.pname; + repo = finalAttrs.pname; + rev = finalAttrs.version; + sha256 = "sha256-6T7AksvBxUpv8TkPicnlCE5KZS/ydPB5Bq1MJcWoZds="; + }; + + installPhase = '' + runHook preInstall + mkdir -p $out + cp -R * $out + rm -rf $out/storage + ln -s ${dataDir}/.env $out/.env + ln -s ${dataDir}/storage $out/storage + runHook postInstall + ''; + + vendorHash = "sha256-5ypBA9Qb8jHzAtvNBHkJfsLIf3Pfw1LvYmHP/hED2ig="; + composerStrictValidation = false; + + meta = { + description = "Web-based, open-source groupware"; + longDescription = "AgoraKit is web-based, open-source groupware for citizens' initiatives. By creating collaborative groups, people can discuss topics, organize events, store files and keep everyone updated as needed. AgoraKit is a forum, calendar, file manager and email notifier."; + homepage = "https://github.com/agorakit/agorakit"; + license = lib.licenses.agpl3Only; + platforms = lib.platforms.all; + maintainers = with lib.maintainers; [ shogo ]; + }; +})