2021-06-02 21:06:00 +02:00
|
|
|
{ stdenv, fetchzip, makeWrapper, mono, lib }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "natural-docs";
|
2022-02-24 17:59:36 +01:00
|
|
|
version = "2.2";
|
2021-06-02 21:06:00 +02:00
|
|
|
|
|
|
|
src = fetchzip {
|
|
|
|
url = "https://naturaldocs.org/download/natural_docs/${version}/Natural_Docs_${version}.zip";
|
2022-02-24 17:59:36 +01:00
|
|
|
sha256 = "sha256-W0E9wamzABnPleVhHHXTIdWJk8kWnrUHojM+pcsowy8=";
|
2021-06-02 21:06:00 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
dontPatch = true;
|
|
|
|
dontConfigure = true;
|
|
|
|
dontBuild = true;
|
|
|
|
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp -r . $out/
|
|
|
|
makeWrapper ${mono}/bin/mono $out/bin/NaturalDocs --add-flags "$out/NaturalDocs.exe"
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Documentation generator for multiple programming languages.";
|
|
|
|
longDescription = ''
|
|
|
|
Natural Docs is an open source documentation generator for multiple
|
|
|
|
programming languages. You document your code in a natural syntax that
|
|
|
|
reads like plain English. Natural Docs then scans your code and builds
|
|
|
|
high-quality HTML documentation from it.
|
|
|
|
'';
|
|
|
|
homepage = "https://naturaldocs.org";
|
|
|
|
license = licenses.agpl3Only;
|
|
|
|
maintainers = [ maintainers.nkpvk ];
|
|
|
|
};
|
|
|
|
}
|