2020-10-19 11:52:47 +02:00
|
|
|
{
|
|
|
|
stdenv
|
|
|
|
, fig
|
|
|
|
, writeText
|
|
|
|
, busybox
|
|
|
|
, jq
|
|
|
|
, texlive
|
2020-11-11 19:03:02 +01:00
|
|
|
, sedReport
|
2020-10-19 11:52:47 +02:00
|
|
|
}:
|
|
|
|
let
|
2020-11-11 19:03:02 +01:00
|
|
|
sedCmd = (import sedReport) fig;
|
2020-10-19 11:52:47 +02:00
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
2020-11-17 15:51:09 +01:00
|
|
|
name = "report.pdf";
|
|
|
|
src = ./report;
|
2020-10-19 11:52:47 +02:00
|
|
|
buildInputs = [ jq texlive.combined.scheme-basic ];
|
|
|
|
buildPhase = ''
|
2020-11-11 19:03:02 +01:00
|
|
|
${sedCmd}
|
2020-11-17 15:51:09 +01:00
|
|
|
make
|
2020-10-19 11:52:47 +02:00
|
|
|
'';
|
|
|
|
installPhase = ''
|
2020-11-17 15:51:09 +01:00
|
|
|
cp report.pdf $out
|
2020-10-19 11:52:47 +02:00
|
|
|
'';
|
|
|
|
}
|