Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 9 additions & 6 deletions pkgs/development/mobile/androidenv/compose-android-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -190,18 +190,21 @@ let
map (
archive:
(fetchurl {
pname = packageInfo.name;
version = packageInfo.revision;
inherit (archive) url sha1;
inherit meta;
passthru = {
info = packageInfo;
};
}).overrideAttrs
(prev: {
# fetchurl won't generate the correct filename if we specify pname and version,
# and we still want the version attribute to show up in search, so specify these in an override
pname = packageInfo.name;
version = packageInfo.revision;
})
(
finalAttrs: previousAttrs: {
# fetchurl prioritize `pname` and `version` over the specified `name`,
# so specify custom `name` in an override.
name = baseNameOf (lib.head (finalAttrs.urls));
}
)
) validArchives
)
)
Expand Down
Loading