Files
Ihar Hrachyshka a0ba5dd100 various: switch dart builders to source based pdfium
Assisted-by: Codex, gpt-5.4 xhigh
2026-08-24 20:30:17 -04:00

40 lines
534 B
Nix

{
lib,
stdenv,
pdfium,
replaceVars,
}:
{ version, src, ... }:
stdenv.mkDerivation rec {
pname = "printing";
inherit version src;
inherit (src) passthru;
prePatch = ''
if [ -d printing ]; then pushd printing; fi
'';
patches = [
(replaceVars ./printing.patch {
pdfiumLib = lib.getLib pdfium;
pdfiumDev = lib.getDev pdfium;
})
];
postPatch = ''
popd || true
'';
dontBuild = true;
installPhase = ''
runHook preInstall
cp -r . $out
runHook postInstall
'';
}