From 42aa9864063ed00dc1196619de82491eb744dcbd Mon Sep 17 00:00:00 2001 From: Niko Pavlinek Date: Wed, 2 Jun 2021 21:06:00 +0200 Subject: [PATCH] natural-docs: init at 2.1.1 --- .../misc/natural-docs/default.nix | 36 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 38 insertions(+) create mode 100644 pkgs/applications/misc/natural-docs/default.nix diff --git a/pkgs/applications/misc/natural-docs/default.nix b/pkgs/applications/misc/natural-docs/default.nix new file mode 100644 index 000000000000..15816b669286 --- /dev/null +++ b/pkgs/applications/misc/natural-docs/default.nix @@ -0,0 +1,36 @@ +{ stdenv, fetchzip, makeWrapper, mono, lib }: + +stdenv.mkDerivation rec { + pname = "natural-docs"; + version = "2.1.1"; + + src = fetchzip { + url = "https://naturaldocs.org/download/natural_docs/${version}/Natural_Docs_${version}.zip"; + sha256 = "03fizjgvhiw3lqyykqw1whdh97xyiy3f226c1348ll61ryjxamqw"; + }; + + 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 ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 646bed9aba69..199f69e5b03f 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -25369,6 +25369,8 @@ in natron = callPackage ../applications/video/natron { }; + natural-docs = callPackage ../applications/misc/natural-docs { }; + neocomp = callPackage ../applications/window-managers/neocomp { }; newsflash = callPackage ../applications/networking/feedreaders/newsflash { };