Add bundled report example

This commit is contained in:
2020-11-17 15:51:09 +01:00
parent fe0bd8b200
commit 33f6ae7e55
7 changed files with 92 additions and 30 deletions

28
garlic/reportTar.nix Normal file
View File

@@ -0,0 +1,28 @@
{
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
'';
}