2021-10-28 06:52:43 +00:00
|
|
|
{ pkgs, stdenv, lib, fetchFromGitHub, dataDir ? "/var/lib/bookstack" }:
|
2021-03-19 17:17:44 +00:00
|
|
|
|
|
|
|
let
|
|
|
|
package = (import ./composition.nix {
|
2021-10-28 06:52:43 +00:00
|
|
|
inherit pkgs;
|
|
|
|
inherit (stdenv.hostPlatform) system;
|
2021-03-19 17:17:44 +00:00
|
|
|
noDev = true; # Disable development dependencies
|
|
|
|
}).overrideAttrs (attrs : {
|
|
|
|
installPhase = attrs.installPhase + ''
|
|
|
|
rm -R $out/storage $out/public/uploads
|
|
|
|
ln -s ${dataDir}/.env $out/.env
|
|
|
|
ln -s ${dataDir}/storage $out/storage
|
|
|
|
ln -s ${dataDir}/public/uploads $out/public/uploads
|
|
|
|
'';
|
|
|
|
});
|
|
|
|
|
|
|
|
in package.override rec {
|
2021-08-05 21:33:18 +00:00
|
|
|
pname = "bookstack";
|
2024-01-25 14:12:00 +00:00
|
|
|
version = "23.12.1";
|
2021-03-19 17:17:44 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "bookstackapp";
|
2021-08-05 21:33:18 +00:00
|
|
|
repo = pname;
|
2021-03-19 17:17:44 +00:00
|
|
|
rev = "v${version}";
|
2024-01-25 14:12:00 +00:00
|
|
|
sha256 = "0ax3mwkypv1wkjh7p7cjpkzi72a4183hw77bjlcjlziw37vsv6kc";
|
2021-03-19 17:17:44 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A 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 = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ ymarkus ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|