Help packaging a flutter app with pub workspaces/local dependencies

Hi! I’m trying to package Boorusama, but I’m running into issues since v4.x.x of the app when the project switched to a monorepo structure.

Previously, buildFlutterApplication worked fine. But now, the app depends on local packages in packages/. The .dart_tool/package_config.json generated by Nix excludes these local packages, unlike the one generated by flutter pub get due to which the build fails(using nix build .).

Here is the one generated by nix:


full file

and the one generated by pub:


full file

I used a patch to remove Firebase from the project (asked the dev, he said for local use, its fine).

flake.nix: raw gist

firebase removal patch: raw gist (i apply the patch manually because i would first like to get the thing running and care about flake structure next)

gist: boorusama nix flake · GitHub

fixed it (builds for linux now)

thanks @sift