lol
1{
2 stdenv,
3 fetchzip,
4 makeWrapper,
5 mono,
6 lib,
7}:
8
9stdenv.mkDerivation rec {
10 pname = "natural-docs";
11 version = "2.3.1";
12
13 src = fetchzip {
14 url = "https://naturaldocs.org/download/natural_docs/${version}/Natural_Docs_${version}.zip";
15 sha256 = "sha256-gjAhS2hdFA8G+E5bJD18BQdb7PrBeRnpBBSlnVJ5hgY=";
16 };
17
18 dontPatch = true;
19 dontConfigure = true;
20 dontBuild = true;
21
22 nativeBuildInputs = [ makeWrapper ];
23
24 installPhase = ''
25 mkdir -p $out/bin
26 cp -r . $out/
27 makeWrapper ${mono}/bin/mono $out/bin/NaturalDocs --add-flags "$out/NaturalDocs.exe"
28 '';
29
30 meta = with lib; {
31 description = "Documentation generator for multiple programming languages";
32 longDescription = ''
33 Natural Docs is an open source documentation generator for multiple
34 programming languages. You document your code in a natural syntax that
35 reads like plain English. Natural Docs then scans your code and builds
36 high-quality HTML documentation from it.
37 '';
38 homepage = "https://naturaldocs.org";
39 license = licenses.agpl3Only;
40 maintainers = [ maintainers.nkpvk ];
41 mainProgram = "NaturalDocs";
42 };
43}