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