it-infra/nixbld-etc-nixos/flarum/default.nix

39 lines
937 B
Nix
Raw Normal View History

2024-08-31 17:27:16 +08:00
{
lib,
php,
fetchFromGitHub,
fetchpatch,
}:
php.buildComposerProject (finalAttrs: {
pname = "flarum";
version = "1.8.1";
src = fetchFromGitHub {
owner = "flarum";
repo = "flarum";
rev = "v${finalAttrs.version}";
hash = "sha256-kigUZpiHTM24XSz33VQYdeulG1YI5s/M02V7xue72VM=";
};
patches = [
2025-01-16 09:13:07 +08:00
# Add useful flarum extensions (polls, subscribed, upload, email-filter)
./flarum-extensions.patch
2024-08-31 17:27:16 +08:00
];
composerLock = ./composer.lock;
composerStrictValidation = false;
2025-01-16 09:13:07 +08:00
vendorHash = "sha256-rWvIKiQVyfvUprYfm/+Jdq+DO5qymyWp+Xh0c0nY2Cw=";
2024-08-31 17:27:16 +08:00
meta = with lib; {
changelog = "https://github.com/flarum/framework/blob/main/CHANGELOG.md";
description = "Flarum is a delightfully simple discussion platform for your website";
homepage = "https://github.com/flarum/flarum";
license = lib.licenses.mit;
maintainers = with maintainers; [
fsagbuya
jasonodoom
];
};
})