Closed Vages closed 4 days ago
@Vages, you can change the stdenv
used by mkShell
.
https://devenv.sh/reference/options/#stdenv
In your devenv config:
{ pkgs, ... }:
{
stdenv = pkgs.stdenvNoCC;
}
@Vages, did you have a chance to try this out?
Just tested, and it worked! 👏 I’ll be closing the issue. Thank you for the help 😄
Describe the bug
flutter run
crashes when running through adevenv
shell if it tries to target IOS. The devenv file can be practically empty.Inspired by a Nixos forum post, I suspect that using
mkShellNoCC
instead ofmkShell
somewhere within thedevenv
source or in a Nix flake would solve the problem: https://discourse.nixos.org/t/flutter-for-ios-setup-not-working/43130 I would be glad to check whether this solution worked, but I would need some assistance.To reproduce
flutter
using some non-devenv method (in my case, Homebrew).Running Flutter without
devenv
works …But throw in a
devenv init
beforeflutter run
, and Xcode will fail to find one or more header files:Version