mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-14 01:33:10 +00:00
341fa709ff
The following principles are now in place: - All wrappers will include SDK file symlinks. There is not much of a reason to not do so, and removing the option to omit it makes it easier to understand what each wrapper does. - There is no longer a way to get the previous derivation from a wrapper. This could yield unexpected results based on the wrapping order. Instead, "sdk", "unwrapped", and "noFHS" passthru attributes are provided where appropriate.
25 lines
590 B
Nix
25 lines
590 B
Nix
{ symlinkJoin }: flutter:
|
|
|
|
let
|
|
self =
|
|
symlinkJoin {
|
|
name = "${flutter.name}-sdk-links";
|
|
paths = [ flutter flutter.sdk ];
|
|
|
|
passthru = flutter.passthru // {
|
|
# Update the SDK attribute.
|
|
# This allows any modified SDK files to be included
|
|
# in future invocations.
|
|
sdk = self;
|
|
};
|
|
|
|
meta = flutter.meta // {
|
|
longDescription = ''
|
|
${flutter.meta.longDescription}
|
|
Modified binaries are linked into the original SDK directory for use with tools that use the whole SDK.
|
|
'';
|
|
};
|
|
};
|
|
in
|
|
self
|