2021-03-20 04:20:00 +00:00
|
|
|
{ stdenv, fetchurl, lib, nixosTests }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "wiki-js";
|
2022-09-22 12:36:57 +00:00
|
|
|
version = "2.5.288";
|
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-09-22 12:36:57 +00:00
|
|
|
sha256 = "sha256-3Bfkmv/DP7L37puhHarfe6ntwJ1d/2v0UMAabcv0Gco=";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|