nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 stdenv,
3 pdfium-binaries,
4}:
5
6{ version, src, ... }:
7
8stdenv.mkDerivation {
9 pname = "pdfium_flutter";
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 cp --recursive . $out
22
23 runHook postInstall
24 '';
25}