2021-03-20 04:20:00 +00:00
|
|
|
{ stdenv, fetchurl, lib, nixosTests }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "wiki-js";
|
2022-07-14 12:49:19 +00:00
|
|
|
version = "2.5.285";
|
2021-03-20 04:20:00 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2022-03-30 09:31:56 +00:00
|
|
|
url = "https://github.com/Requarks/wiki/releases/download/v${version}/${pname}.tar.gz";
|
2022-07-14 12:49:19 +00:00
|
|
|
sha256 = "sha256-mT33fJ6gNg1R06RW/RvzjRqsQFZJ0x14kKScgVfPREA=";
|
2021-03-20 04:20:00 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
sourceRoot = ".";
|
|
|
|
|
|
|
|
dontBuild = true;
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
|
|
|
|
mkdir $out
|
|
|
|
cp -r . $out
|
|
|
|
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
2022-04-15 01:41:22 +00:00
|
|
|
passthru = {
|
|
|
|
tests = { inherit (nixosTests) wiki-js; };
|
|
|
|
updateScript = ./update.sh;
|
|
|
|
};
|
2021-03-20 04:20:00 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://js.wiki/";
|
|
|
|
description = "A modern and powerful wiki app built on Node.js";
|
|
|
|
license = licenses.agpl3Only;
|
|
|
|
maintainers = with maintainers; [ ma27 ];
|
|
|
|
};
|
|
|
|
}
|