2021-03-20 04:20:00 +00:00
|
|
|
{ stdenv, fetchurl, lib, nixosTests }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "wiki-js";
|
2021-09-18 10:52:07 +00:00
|
|
|
version = "2.5.214";
|
2021-03-20 04:20:00 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/Requarks/wiki/releases/download/${version}/${pname}.tar.gz";
|
2021-09-18 10:52:07 +00:00
|
|
|
sha256 = "sha256-EXysHhEJ41LMLRueEoFr+SE9SdJEXMZLhJQSvZgToTg=";
|
2021-03-20 04:20:00 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
sourceRoot = ".";
|
|
|
|
|
|
|
|
dontBuild = true;
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
|
|
|
|
mkdir $out
|
|
|
|
cp -r . $out
|
|
|
|
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
|
|
|
passthru.tests = { inherit (nixosTests) wiki-js; };
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|