1{
2 stdenv,
3 pdfium-binaries,
4 replaceVars,
5}:
6
7{ version, src, ... }:
8
9stdenv.mkDerivation rec {
10 pname = "printing";
11 inherit version src;
12 inherit (src) passthru;
13
14 prePatch = ''
15 if [ -d printing ]; then pushd printing; fi
16 '';
17
18 patches = [
19 (replaceVars ./printing.patch {
20 inherit pdfium-binaries;
21 })
22 ];
23
24 postPatch = ''
25 popd || true
26 '';
27
28 dontBuild = true;
29
30 installPhase = ''
31 runHook preInstall
32
33 cp -r . $out
34
35 runHook postInstall
36 '';
37}