summary refs log tree commit diff
path: root/pkgs/development/compilers/flutter/wrapper.nix
diff options
context:
space:
mode:
authorhacker1024 <hacker1024@users.sourceforge.net>2023-04-13 16:15:08 +1000
committerhacker1024 <hacker1024@users.sourceforge.net>2023-04-13 18:01:32 +1000
commit9e33e35589ac026ba535c8d8e68a6e66beeac048 (patch)
treee4fffcaaa3f6e7adc382e401eabb2bcaef2484a0 /pkgs/development/compilers/flutter/wrapper.nix
parent94a34aadf6d3f7a78cad181a555d4d162a7e7914 (diff)
downloadnixpkgs-9e33e35589ac026ba535c8d8e68a6e66beeac048.tar
nixpkgs-9e33e35589ac026ba535c8d8e68a6e66beeac048.tar.gz
nixpkgs-9e33e35589ac026ba535c8d8e68a6e66beeac048.tar.bz2
nixpkgs-9e33e35589ac026ba535c8d8e68a6e66beeac048.tar.lz
nixpkgs-9e33e35589ac026ba535c8d8e68a6e66beeac048.tar.xz
nixpkgs-9e33e35589ac026ba535c8d8e68a6e66beeac048.tar.zst
nixpkgs-9e33e35589ac026ba535c8d8e68a6e66beeac048.zip
flutter: Add zlib to the linker search path
Diffstat (limited to 'pkgs/development/compilers/flutter/wrapper.nix')
-rw-r--r--pkgs/development/compilers/flutter/wrapper.nix6
1 files changed, 4 insertions, 2 deletions
diff --git a/pkgs/development/compilers/flutter/wrapper.nix b/pkgs/development/compilers/flutter/wrapper.nix
index 7d7747217ad..b9341bdb1b1 100644
--- a/pkgs/development/compilers/flutter/wrapper.nix
+++ b/pkgs/development/compilers/flutter/wrapper.nix
@@ -17,6 +17,7 @@
 , pango
 , libX11
 , xorgproto
+, zlib
 , cmake
 , ninja
 , clang
@@ -53,9 +54,9 @@ let
     in
     builtins.concatMap collect appRuntimeDeps;
 
-  # Some header files are not properly located by the Flutter SDK.
+  # Some header files and libraries are not properly located by the Flutter SDK.
   # They must be manually included.
-  appStaticBuildDeps = lib.optionals supportsLinuxDesktop [ libX11 xorgproto ];
+  appStaticBuildDeps = lib.optionals supportsLinuxDesktop [ libX11 xorgproto zlib ];
 
   # Some runtime components are prebuilt, and do not know where to find their dependencies.
   # Ideally, these prebuilt components would be patched by the SDK derivation, but this
@@ -94,6 +95,7 @@ in
     --set-default ANDROID_EMULATOR_USE_SYSTEM_LIBS 1 \
     --prefix PATH : '${lib.makeBinPath buildTools}' \
     --prefix PKG_CONFIG_PATH : '${builtins.concatStringsSep ":" pkgConfigDirectories}' \
+    --prefix LIBRARY_PATH : '${lib.makeLibraryPath appStaticBuildDeps}' \
     --prefix CXXFLAGS "''\t" '${builtins.concatStringsSep " " cppFlags}' \
     --prefix LDFLAGS "''\t" '${builtins.concatStringsSep " " (map (flag: "-Wl,${flag}") linkerFlags)}'
 '')