1 { pkgs, stdenv, lib, fetchFromGitHub, dataDir ? "/var/lib/bookstack" }:
4 package = (import ./composition.nix {
6 inherit (stdenv.hostPlatform) system;
7 noDev = true; # Disable development dependencies
8 }).overrideAttrs (attrs : {
9 installPhase = attrs.installPhase + ''
10 rm -R $out/storage $out/public/uploads
11 ln -s ${dataDir}/.env $out/.env
12 ln -s ${dataDir}/storage $out/storage
13 ln -s ${dataDir}/public/uploads $out/public/uploads
17 in package.override rec {
21 src = fetchFromGitHub {
22 owner = "bookstackapp";
25 sha256 = "13yln6b5j9plkcrp1mwfvgcv67gm2ayb2l2grhw2h4ncqnvmxhwv";
29 description = "Platform to create documentation/wiki content built with PHP & Laravel";
31 A platform for storing and organising information and documentation.
32 Details for BookStack can be found on the official website at https://www.bookstackapp.com/.
34 homepage = "https://www.bookstackapp.com/";
35 license = licenses.mit;
36 maintainers = with maintainers; [ ymarkus ];
37 platforms = platforms.linux;