blob: 963aa6180908067ea6552161ec903e2ef5a96d56 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
{ pkgs ? import <nixpkgs> {}, rev ? null }:
with pkgs;
stdenv.mkDerivation {
name = "bionix-slides";
src = ./.;
buildInputs = with pkgs; [ exiftool (callPackage ./tex.nix {}) ];
buildPhase = ''
latexmk -xelatex slides
${lib.optionalString (rev != null) "exiftool -Producer='${rev}' -Author='Justin Bedő' -Title='BioNix: functional, reproducible bioinformatics workflows' slides.pdf"}
'';
installPhase = ''
mkdir -p $out
cp slides.pdf $out
'';
}
|