forked from rarias/bscpkgs
Add bundled report example
This commit is contained in:
28
garlic/reportTar.nix
Normal file
28
garlic/reportTar.nix
Normal 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
|
||||
'';
|
||||
}
|
||||
Reference in New Issue
Block a user