~kaction/config

06e10ff4217b9081430732c13b92934880cabf21 — Dmitry Bogatov 3 months ago 04390cf
Documentation: add laminar manual
2 files changed, 14 insertions(+), 0 deletions(-)

M universe/Documentation/default.nix
A universe/Documentation/doc-laminar.nix
M universe/Documentation/default.nix => universe/Documentation/default.nix +2 -0
@@ 9,6 9,7 @@ let
  doc-python = callPackage ./doc-python.nix { };
  doc-uwsgi = callPackage ./doc-uwsgi.nix { };
  doc-jsonschema = callPackage ./doc-jsonschema.nix { };
  doc-laminar = callPackage ./doc-laminar.nix { };
  doc-autoconf = callPackage ./doc-autoconf.nix { };
  doc-m4 = callPackage ./doc-m4.nix { };
  script = callPackage ./script.nix { };


@@ 40,6 41,7 @@ in runCommand "Documentation" { } ''
  ln -sf ${haskellPackages.lens.doc}/share/doc/*/html/index.html haskell/lens.html
  ln -sf ${doc-python}/html/library/index.html Python.html
  ln -sf ${doc-jsonschema}/index.html JSON-Schema.html
  cp ${doc-laminar} laminar.html
  cp ${doc-m4} m4.html
  cp ${doc-autoconf} Autoconf.html


A universe/Documentation/doc-laminar.nix => universe/Documentation/doc-laminar.nix +12 -0
@@ 0,0 1,12 @@
{ stdenv, laminar, pandoc }:

stdenv.mkDerivation {
  inherit (laminar) src;

  name = "Documentation-laminar.html";
  nativeBuildInputs = [ pandoc ];
  phases = [ "unpackPhase" "installPhase" ];
  installPhase = ''
    pandoc -s UserManual.md -o $out
  '';
}