nixpkgs/pkgs/servers/web-apps/wiki-js/default.nix

33 lines
711 B
Nix
Raw Normal View History

2021-03-18 12:33:40 +01:00
{ stdenv, fetchurl, lib, nixosTests }:
stdenv.mkDerivation rec {
pname = "wiki-js";
2021-04-05 09:37:08 +02:00
version = "2.5.201";
2021-03-18 12:33:40 +01:00
src = fetchurl {
url = "https://github.com/Requarks/wiki/releases/download/${version}/${pname}.tar.gz";
2021-04-05 09:37:08 +02:00
sha256 = "sha256-k2G+jUne/lq0dRJsIQpWlRFg1Nq92bM28YkawKOKlsI=";
2021-03-18 12:33:40 +01:00
};
sourceRoot = ".";
dontBuild = true;
installPhase = ''
runHook preInstall
2021-03-18 12:33:40 +01:00
mkdir $out
cp -r . $out
runHook postInstall
2021-03-18 12:33:40 +01:00
'';
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 ];
};
}