1{ 2 stdenv, 3 pdfium-binaries, 4}: 5 6{ version, src, ... }: 7 8stdenv.mkDerivation rec { 9 pname = "pdfrx"; 10 inherit version src; 11 inherit (src) passthru; 12 13 postPatch = '' 14 substituteInPlace linux/CMakeLists.txt \ 15 --replace-fail "\''${PDFIUM_DIR}/\''${PDFIUM_RELEASE}" "${pdfium-binaries}" 16 ''; 17 18 installPhase = '' 19 runHook preInstall 20 21 mkdir $out 22 cp -a ./* $out/ 23 24 runHook postInstall 25 ''; 26}