bcb2f287e1
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
39 lines
1.2 KiB
Nix
39 lines
1.2 KiB
Nix
{ pkgs, stdenv, lib, fetchFromGitHub, dataDir ? "/var/lib/bookstack" }:
|
|
|
|
let
|
|
package = (import ./composition.nix {
|
|
inherit pkgs;
|
|
inherit (stdenv.hostPlatform) system;
|
|
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 {
|
|
pname = "bookstack";
|
|
version = "24.05.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "bookstackapp";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "1m20435sp4n3dg7am4lh73yw1wdmnsf15wdl554lrklhg7f21s0w";
|
|
};
|
|
|
|
meta = with lib; {
|
|
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 = licenses.mit;
|
|
maintainers = with maintainers; [ ymarkus ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|