-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
2589: Release docs pdf on hydra r=coot a=jbgi Co-authored-by: Jean-Baptiste Giraudeau <jean-baptiste.giraudeau@iohk.io>
- Loading branch information
Showing
5 changed files
with
65 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
(import ../nix {}).docs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
{ pkgs }: with pkgs; | ||
let | ||
src = haskell-nix.haskellLib.cleanGit { | ||
name = "ouroboros-network-docs-src"; | ||
src = ../.; | ||
subDir = "docs"; | ||
}; | ||
message-cddl = ../ouroboros-network/test/messages.cddl; | ||
in pkgs.runCommand "ouroboros-network-docs" { | ||
nativeBuildInputs = [ imagemagick ]; | ||
buildInputs = [ (texlive.combine { | ||
inherit (texlive) | ||
cleveref | ||
framed | ||
scheme-small | ||
collection-fontsrecommended | ||
stmaryrd kpfonts geometry hyperref | ||
todonotes | ||
amsmath mathtools | ||
colortbl polytable lazylist | ||
fancyvrb | ||
#graphicx | ||
pstricks | ||
wrapfig | ||
# build tools | ||
latexmk | ||
; | ||
})]; | ||
} '' | ||
for d in network-design network-spec; do | ||
mkdir -p docs/$d | ||
ln -s ${src}/$d/* docs/$d/ | ||
done | ||
mkdir -p ouroboros-network/test | ||
cp ${message-cddl} ouroboros-network/test/messages.cddl | ||
mkdir -p $out | ||
( | ||
cd docs/network-design | ||
latexmk -pdf -pdflatex="pdflatex -interaction=nonstopmode" | ||
cp -a *.pdf $out/ | ||
) | ||
( | ||
cd docs/network-spec | ||
make all | ||
cp -a *.pdf $out/ | ||
) | ||
mkdir -p $out/nix-support | ||
for pdf in $out/*.pdf; do | ||
echo "file binary-dist $pdf" >> $out/nix-support/hydra-build-products | ||
done | ||
'' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,4 +9,6 @@ pkgs: _: with pkgs; { | |
buildPackages | ||
; | ||
}; | ||
|
||
docs = callPackages ./docs.nix {}; | ||
} |