bscpkgs/garlic/report.nix

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
'';
}