dart: ffigen: Add package override

This commit is contained in:
hacker1024 2023-10-28 22:20:08 +11:00 committed by FlafyDev
parent 4e4c4c2ad0
commit 9f3ae29eca
2 changed files with 15 additions and 0 deletions

View File

@ -1,6 +1,7 @@
{ callPackage }:
{
ffigen = callPackage ./ffigen { };
flutter_secure_storage_linux = callPackage ./flutter-secure-storage-linux { };
handy_window = callPackage ./handy-window { };
matrix = callPackage ./matrix { };

View File

@ -0,0 +1,14 @@
{ lib
, llvmPackages
}:
{ ... }:
{ FFIGEN_COMPILER_OPTS ? ""
, ...
}:
{
FFIGEN_LIBCLANG = lib.getLib llvmPackages.libclang;
FFIGEN_COMPILER_OPTS = "-I${FFIGEN_COMPILER_OPTS} ${llvmPackages.clang}/resource-root/include -I${lib.makeSearchPathOutput "dev" "include" [ llvmPackages.clang.libc_dev ]}";
}