depot/third_party/nixpkgs/pkgs/applications/misc/natural-docs/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

37 lines
1.1 KiB
Nix

{ stdenv, fetchzip, makeWrapper, mono, lib }:
stdenv.mkDerivation rec {
pname = "natural-docs";
version = "2.3";
src = fetchzip {
url = "https://naturaldocs.org/download/natural_docs/${version}/Natural_Docs_${version}.zip";
sha256 = "sha256-yk9PxrZ6+ocqGLB+xCBGiQKnHLMdp2r+NuoMhWsr0GM=";
};
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 ];
mainProgram = "NaturalDocs";
};
}