depot/third_party/nixpkgs/pkgs/servers/web-apps/wiki-js/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

35 lines
755 B
Nix

{ stdenv, fetchurl, lib, nixosTests }:
stdenv.mkDerivation rec {
pname = "wiki-js";
version = "2.5.303";
src = fetchurl {
url = "https://github.com/Requarks/wiki/releases/download/v${version}/${pname}.tar.gz";
sha256 = "sha256-Jpv4D+ldGPvJz+8cwNhrmC+Ii5dG0UOTC5JIWPwUzvk=";
};
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 = "Modern and powerful wiki app built on Node.js";
license = licenses.agpl3Only;
maintainers = with maintainers; [ ma27 ];
};
}