dart.pdfium_flutter: init
This commit is contained in:
@@ -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
|
||||
'';
|
||||
}
|
||||
Reference in New Issue
Block a user