You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The description containing text and not a name and a URL make pub2nix trip and stop adding hashes to pub2nix.lock after encountering the first such dependency.
I think pub2nix can only deal with dependencies of type hosted(the regular most common case) while the types sdk and git would probably have to be handled differently in nix-dart here and in pub2nix.
I am not sure what else would have to be done to get flutter apps building. It seems flutter would have to be invoked instead of dart.
I saw that there is also flutter support in nixpkgs (See NixOS/nixpkgs#36759 (comment)), but I have not looked more closely at that because I am unsure if there is a good way to get dependencies into a sandboxed build that way.
I am not actively working on getting this to work anymore as of now, since it was just an experiment for me. I am also not that familiar with flutter or dart.
The text was updated successfully, but these errors were encountered:
I tried building a flutter app with this project, which does not seem to work.
I wanted to share my notes here in case that is helpful.
I tried building https://github.com/GreenPassApp/greenpass-app as a flake with this project.
It seem like dependencies from the flutter SDK end up in the
pubspec.yml
like thiswhile regular dependencies look like this
The description containing text and not a name and a URL make
pub2nix
trip and stop adding hashes topub2nix.lock
after encountering the first such dependency.I think
pub2nix
can only deal with dependencies of typehosted
(the regular most common case) while the typessdk
andgit
would probably have to be handled differently innix-dart
here and inpub2nix
.I am not sure what else would have to be done to get flutter apps building. It seems flutter would have to be invoked instead of dart.
I saw that there is also flutter support in
nixpkgs
(See NixOS/nixpkgs#36759 (comment)), but I have not looked more closely at that because I am unsure if there is a good way to get dependencies into a sandboxed build that way.I am not actively working on getting this to work anymore as of now, since it was just an experiment for me. I am also not that familiar with flutter or dart.
The text was updated successfully, but these errors were encountered: