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

27 lines
447 B
Nix

{
lib,
stdenv,
pdfium,
}:
{ version, src, ... }:
stdenv.mkDerivation {
pname = "pdfrx";
inherit version src;
inherit (src) passthru;
postPatch = lib.optionalString (lib.versionOlder version "2.2.9") ''
substituteInPlace linux/CMakeLists.txt \
--replace-fail "\''${PDFIUM_DIR}/\''${PDFIUM_RELEASE}" "${pdfium}"
'';
installPhase = ''
runHook preInstall
cp --recursive . $out
runHook postInstall
'';
}