Skip to content

Better to use final instead of prev in overlay? #72

@CHN-beta

Description

@CHN-beta

Thanks for your great work, it helps me a lot 😺

I have an issue when using the overlay.

Currently, when packages not available in nixpkgs was introduced (e.g., smooth-video-player, svp), callPackage from prev instead of final was used. This makes the final package dependent on the order of the overlays.

pkgs = prev;

For example, ffmpeg should be patched to work on my machine. Thus, to make svp works on my machine, I have to ensure the overlay from this repository is applied after my overlay (which overrides ffmpeg), which is quite confusing and annoying.

Is it better to use final when introducing new packages, and only use prev when overriding existing packages (e.g., python3) ?

p.s. same issue in cachyos kernel overlay.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions