3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/servers/web-apps/bookstack/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

40 lines
1.2 KiB
Nix
Raw Normal View History

2021-10-22 22:03:17 +01:00
{ pkgs, stdenv, lib, fetchFromGitHub, dataDir ? "/var/lib/bookstack" }:
2021-01-17 20:08:40 +00:00
let
package = (import ./composition.nix {
2021-10-22 22:03:17 +01:00
inherit pkgs;
inherit (stdenv.hostPlatform) system;
2021-01-17 20:08:40 +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 {
pname = "bookstack";
2021-12-27 10:43:41 +00:00
version = "21.12";
2021-01-17 20:08:40 +00:00
src = fetchFromGitHub {
owner = "bookstackapp";
repo = pname;
2021-01-17 20:08:40 +00:00
rev = "v${version}";
2021-12-27 10:43:41 +00:00
sha256 = "1bfwpvawa3pxpdsdbi3nxpjpdv2z1jmv7nk6cs9gs0210jlairsz";
2021-01-17 20:08:40 +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;
};
}