dart.pdfium_flutter: init

This commit is contained in:
kyehn
2025-12-14 17:58:57 +00:00
parent 207c2efbb2
commit 5a8f3c2ef7
2 changed files with 26 additions and 0 deletions
@@ -11,6 +11,7 @@
matrix = callPackage ./matrix { };
media_kit_libs_linux = callPackage ./media_kit_libs_linux { };
olm = callPackage ./olm { };
pdfium_flutter = callPackage ./pdfium_flutter { };
pdfrx = callPackage ./pdfrx { };
printing = callPackage ./printing { };
rhttp = callPackage ./rhttp { };
@@ -0,0 +1,25 @@
{
stdenv,
pdfium-binaries,
}:
{ version, src, ... }:
stdenv.mkDerivation {
pname = "pdfium_flutter";
inherit version src;
inherit (src) passthru;
postPatch = ''
substituteInPlace linux/CMakeLists.txt \
--replace-fail "\''${PDFIUM_DIR}/\''${PDFIUM_RELEASE}" "${pdfium-binaries}"
'';
installPhase = ''
runHook preInstall
cp --recursive . $out
runHook postInstall
'';
}