Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
52 lines
1.4 KiB
Nix
52 lines
1.4 KiB
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
php83,
|
|
nixosTests,
|
|
dataDir ? "/var/lib/bookstack",
|
|
}:
|
|
|
|
php83.buildComposerProject2 (finalAttrs: {
|
|
pname = "bookstack";
|
|
version = "25.07.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "bookstackapp";
|
|
repo = "bookstack";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-j6vDox70HPLwBlBDyewpwi1FUpNq62fj9RvqppjZ16Q=";
|
|
};
|
|
|
|
vendorHash = "sha256-UjIFk23BFfghieHnvomU0UAwZJslN8ya+IDat001RrE=";
|
|
|
|
passthru = {
|
|
phpPackage = php83;
|
|
tests = nixosTests.bookstack;
|
|
};
|
|
|
|
postInstall = ''
|
|
chmod -R u+w $out/share
|
|
mv $out/share/php/bookstack/* $out
|
|
rm -R $out/share $out/storage $out/bootstrap/cache $out/public/uploads $out/themes
|
|
ln -s ${dataDir}/storage $out/storage
|
|
ln -s ${dataDir}/cache $out/bootstrap/cache
|
|
ln -s ${dataDir}/public/uploads $out/public/uploads
|
|
ln -s ${dataDir}/themes $out/themes
|
|
'';
|
|
|
|
meta = {
|
|
description = "Platform to create documentation/wiki content built with PHP & Laravel";
|
|
longDescription = ''
|
|
A platform for storing and organising information and documentation.
|
|
Details for BookStack can be found on the official website at https://www.bookstackapp.com/.
|
|
'';
|
|
homepage = "https://www.bookstackapp.com/";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [
|
|
ymarkus
|
|
savyajha
|
|
];
|
|
platforms = lib.platforms.linux;
|
|
};
|
|
})
|