1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-29 09:02:46 +00:00
nixpkgs/pkgs/servers/web-apps/bookstack/default.nix
2021-05-03 16:24:01 +02:00

39 lines
1.2 KiB
Nix

{ pkgs, system, lib, fetchFromGitHub, dataDir ? "/var/lib/bookstack" }:
let
package = (import ./composition.nix {
inherit pkgs 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 {
name = "bookstack";
version = "21.04.3";
src = fetchFromGitHub {
owner = "bookstackapp";
repo = name;
rev = "v${version}";
sha256 = "1vkl0v3c5q0734xvvqinq4zikhy37wjys6nj1h9qdbbka0h39592";
};
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;
};
}