bscpkgs/garlic/reportTar.nix

29 lines
409 B
Nix
Raw Normal View History

2020-11-17 22:51:09 +08:00
{
stdenv
, fig
, writeText
, busybox
, jq
, texlive
, bundleReport
}:
let
genCmd = (import bundleReport) fig;
in
stdenv.mkDerivation {
name = "report.tar.gz";
src = ./report;
buildInputs = [ jq texlive.combined.scheme-basic ];
buildPhase = ''
${genCmd}
ls -ltR
cat report.tex
make
'';
installPhase = ''
cd ..
tar -czf $out report
'';
}