Unable to use a custom Flutter version in development Flake

Hello,

I have a nix develop Flake, and I’m trying to make it use a custom Flutter version from the Flutter SDK archive.

Making a simple overlay doesn’t seem to be an option because of how the package is structured (the flutter inside the override is a set with plenty of attributes):

overlays = [
  (final: prev: {
    flutter = prev.flutterPackages.override {
      flutter = {
        # error: attribute 'xyz' missing
        engineVersion = "flutter_linux_3.38.7-stable";
      };
    };
  })
];

And this solution just seems overkill (especially since the mkFlutter function has 12 required parameters now):

I feel like there must be an easier way of doing this. Also, just for reference, this is the Flake I’m trying to modify.

Thanks in advance.

Well, seeing how tightly-integrated version hash codes seem to be, it may just be the case that making the package more easily configurable would be a big undertaking.