blob: 5ba007910e1a4e851cc6b1a1b5d0f7272d93a678 (
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}' slides.pdf"}
'';
installPhase = ''
mkdir -p $out
cp slides.pdf $out
'';
}
|