571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
38 lines
1.1 KiB
Nix
38 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";
|
|
};
|
|
}
|