forked from IntersectMBO/plutus
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdefault.nix
More file actions
21 lines (21 loc) · 707 Bytes
/
Copy pathdefault.nix
File metadata and controls
21 lines (21 loc) · 707 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{ stdenv, lib, pythonPackages, sphinxcontrib-domaintools, sphinxcontrib-haddock, sphinx-markdown-tables, sphinxemoji, combined-haddock, ... }:
stdenv.mkDerivation {
name = "plutus-docs";
src = lib.sourceFilesBySuffices ./. [ ".py" ".rst" ".hs" ".png" ];
buildInputs = with pythonPackages; [
sphinx
sphinx_rtd_theme
sphinxcontrib-domaintools
sphinxcontrib-haddock
sphinx-markdown-tables
sphinxemoji
recommonmark
];
buildPhase = ''
cp -aR ${combined-haddock}/share/doc haddock
# -n gives warnings on missing link targets, -W makes warnings into errors
SPHINX_HADDOCK_DIR=haddock sphinx-build -n -W . $out
cp -aR haddock $out
'';
dontInstall = true;
}