bscpkgs/garlic/report.nix

25 lines
350 B
Nix
Raw Normal View History

2020-10-19 11:52:47 +02:00
{
stdenv
, fig
, writeText
, busybox
, jq
, texlive
, sedReport
2020-10-19 11:52:47 +02:00
}:
let
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 = ''
${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
'';
}