File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5353
5454 platforms = {
5555 web = import ./platforms/web.nix { inherit pkgs pinnedFlutter ; } ;
56- linux = import ./platforms/linux.nix { inherit pkgs stdenv lib ; } ;
56+ linux = import ./platforms/linux.nix {
57+ inherit
58+ pkgs
59+ pinnedFlutter
60+ stdenv
61+ lib
62+ ;
63+ } ;
5764 apk = import ./platforms/apk.nix {
5865 inherit
5966 pkgs
6572 } ;
6673
6774in
68- pinnedFlutter . buildFlutterApplication (
75+ ( pinnedFlutter . buildFlutterApplication (
6976 head
7077 // lib . optionalAttrs ( targetFlutterPlatform == "linux" ) platforms . linux
7178 // lib . optionalAttrs ( targetFlutterPlatform == "web" ) platforms . web
7279 // lib . optionalAttrs ( targetFlutterPlatform == "apk" ) platforms . apk
73- )
80+ ) ) . overrideAttrs
81+ ( old : {
82+ # extraIncludes = break [ pkgs.fribidi.dev ];
83+ # flutterBuildFlags = [
84+ # "--cmake-args"
85+ # "-CXXFLAGS=\"-I${pkgs.fribidi.dev}/include\""
86+ # ];
87+ } )
Original file line number Diff line number Diff line change 11{
22 pkgs ,
3+ pinnedFlutter ,
34 stdenv ,
45 lib ,
56 ...
910 pkgs . libgbm
1011 pkgs . libdrm
1112 ] ;
13+ vodozemac-wasm = pkgs . callPackage ../vodozemac { flutter = pinnedFlutter ; } ;
1214in
1315{
1416 nativeBuildInputs = with pkgs ; [
1517 imagemagick
1618 copyDesktopItems
1719 webkitgtk_4_1
20+ rustup
1821 ] ;
1922
20- runtimeDependencies = with pkgs ; [ pulseaudio ] ;
23+ buildInputs = [ vodozemac-wasm ] ;
24+
25+ runtimeDependencies = with pkgs ; [
26+ pulseaudio
27+ vodozemac-wasm
28+ ] ;
2129
2230 env . NIX_LDFLAGS = "-rpath-link ${ libwebrtcRpath } " ;
31+ NIX_LD = lib . fileContents "${ stdenv . cc } /nix-support/dynamic-linker" ;
32+
33+ env . CPATH = "${ pkgs . fribidi . dev } /include/fribidi" ;
34+
35+ shellHook = ''
36+ export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:./build/linux/x64/debug/bundle/lib/"
37+ '' ;
2338
2439 desktopItems = [
2540 ( pkgs . makeDesktopItem {
You can’t perform that action at this time.
0 commit comments