bscpkgs/garlic/report.nix
2020-11-17 15:51:09 +01:00

25 lines
350 B
Nix

{
stdenv
, fig
, writeText
, busybox
, jq
, texlive
, sedReport
}:
let
sedCmd = (import sedReport) fig;
in
stdenv.mkDerivation {
name = "report.pdf";
src = ./report;
buildInputs = [ jq texlive.combined.scheme-basic ];
buildPhase = ''
${sedCmd}
make
'';
installPhase = ''
cp report.pdf $out
'';
}