mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 00:12:56 +00:00
cfb5dcd637
Diff: https://github.com/BookStackApp/BookStack/compare/v24.05.1...v24.05.2 Changelog: https://github.com/BookStackApp/BookStack/releases/tag/v24.05.2
40 lines
1.2 KiB
Nix
40 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.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "bookstackapp";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "13yln6b5j9plkcrp1mwfvgcv67gm2ayb2l2grhw2h4ncqnvmxhwv";
|
|
};
|
|
|
|
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;
|
|
};
|
|
}
|