-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature Request] Some way to copy files from src to the nix code folder #237
Comments
Would be great if you also have other examples where this might be needed to find a good abstraction that can be re-used. |
Does the normal nix build itself also need the pubspec.lock? |
Any case that would otherwise be a IFD to get a file from src is a exemple.
|
|
Ok. So what file does it produce after having the pubspec? I assume it generate some nix code? |
In the flutter case it consumes the pubspec.lock converted to JSON. Kind of Nix code with extra steps. |
The problem:
Packages built with
buildFlutterApplication
need to vendor thepubspec.lock
as a JSON file to be used in the builder. The issue is that there is no simple way to setup this in a r-ryantm friendly way.What I suggest is something like a function that gets defined in passthru that receives the src and returns the stuff that should be copied in the Nix code folder.
Example:
That pubspec.lock will be copied to the location where the nix file defining the derivation is located in a
cp $src/* $out
fashion. It seems the primitives are already there but I need to study more the code to find out where should I put it and write a prototype.The text was updated successfully, but these errors were encountered: