Skip to content

fetch{url,zip}: use basename of URL without the query string as the default derivation name #500862

@UlyssesZh

Description

@UlyssesZh

This is intuitive because the query string makes the filename extension incorrect. Practically, it sometimes avoids using the extension argument of fetchzip. Example:

https://github.com/NixOS/nixpkgs/blob/5a6e073dad0d2c502a55c1db56cc6531f678081b/pkgs/by-name/ce/celeste-classic/package.nix#L20-L25

Metadata

Metadata

Assignees

No one assigned

    Labels

    0.kind: enhancementAdd something new or improve an existing system.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions