mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-02 11:53:27 +00:00
36 lines
755 B
Nix
36 lines
755 B
Nix
{ stdenv, fetchurl, lib, nixosTests }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "wiki-js";
|
|
version = "2.5.304";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/Requarks/wiki/releases/download/v${version}/${pname}.tar.gz";
|
|
sha256 = "sha256-w89+X3sqZPlX7EuK/g2oATHqlpx1br/Njh81vZt8zYM=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|