Skip to content

Better package source fetching #299

Closed
@blaggacao

Description

@blaggacao

Courtesy of research conducted by @GTrunSec

Would your feature fix an existing issue?

The current way of fetching package sources is by using nix flake builtin capabilities via a sub-flake located in ./pkgs/flake.nix.

This workflow is seen critically by the community as an overuse of flakes.

Describe the solution you'd like

https://github.com/berberman/nvfetcher
Implements a flake-native version updater which relies on purpose built tooling for upstream version detection on a variety of source hosting platforms.

It implements a simple to read toml file for specifying those source repositories (instead of sort of "twisting" flake inputs to fit).

It abstracts away the perceived complexity of ./pkgs/flake.nix entirely.

Describe alternatives you've considered

At some point, flakes might mature into a state where source fetching is natively supported and semantically useful version data (ref in addition to rev) will be accessible as an input's metadata. However the corresponding suggestion in upstream nix (link tbd) was closed by @edolstra for the time being, which indicates that this use case will not enjoy prime support any time soon.

Additional context

  • We have to analyze if the underlying nvchecker has superior equal or inferior version fetching qualities than builtin nix.
  • To complement the bigger picture within the ecosystem it might also be in order to compare the underlying nvchecker sumarily with @ryantm 's nixpkgs-update.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions