mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 23:23:07 +00:00
6f0c6c95e9
ChangeLog: https://github.com/requarks/wiki/releases/tag/v2.5.300 Apparently they actually fixed their Node 18+ support, so we can drop the patchery 🎉
36 lines
772 B
Nix
36 lines
772 B
Nix
{ stdenv, fetchurl, lib, nixosTests, jq, moreutils }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "wiki-js";
|
|
version = "2.5.300";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/Requarks/wiki/releases/download/v${version}/${pname}.tar.gz";
|
|
sha256 = "sha256-Cycq2oeB8v02VtE5KPs09+uzZqvGbJRH+J4YPDYo+yY=";
|
|
};
|
|
|
|
sourceRoot = ".";
|
|
|
|
dontBuild = true;
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
mkdir $out
|
|
cp -r . $out
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
passthru = {
|
|
tests = { inherit (nixosTests) wiki-js; };
|
|
updateScript = ./update.sh;
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|