2021-03-18 12:33:40 +01:00
|
|
|
{ stdenv, fetchurl, lib, nixosTests }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "wiki-js";
|
2022-04-08 18:44:16 +02:00
|
|
|
version = "2.5.277";
|
2021-03-18 12:33:40 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2022-03-14 14:05:51 +01:00
|
|
|
url = "https://github.com/Requarks/wiki/releases/download/v${version}/${pname}.tar.gz";
|
2022-04-08 18:44:16 +02:00
|
|
|
sha256 = "sha256-YLw0DR4dbPfNY56lNybEQFXFEVPZ99sQkwDl6gtz40E=";
|
2021-03-18 12:33:40 +01:00
|
|
|
};
|
|
|
|
|
2021-03-27 21:04:53 +01:00
|
|
|
sourceRoot = ".";
|
|
|
|
|
|
|
|
dontBuild = true;
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
|
2021-03-18 12:33:40 +01:00
|
|
|
mkdir $out
|
2021-03-27 21:04:53 +01:00
|
|
|
cp -r . $out
|
|
|
|
|
|
|
|
runHook postInstall
|
2021-03-18 12:33:40 +01:00
|
|
|
'';
|
|
|
|
|
2022-04-08 18:44:02 +02:00
|
|
|
passthru = {
|
|
|
|
tests = { inherit (nixosTests) wiki-js; };
|
|
|
|
updateScript = ./update.sh;
|
|
|
|
};
|
2021-03-18 12:33:40 +01: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 ];
|
|
|
|
};
|
|
|
|
}
|