Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

suggestion purl2url.py: allow mirrors #90

Open
armijnhemel opened this issue May 16, 2022 · 0 comments
Open

suggestion purl2url.py: allow mirrors #90

armijnhemel opened this issue May 16, 2022 · 0 comments

Comments

@armijnhemel
Copy link

In NixOS a special syntax is used in the package configurations that allow downloading from mirrors, which are then locally configured and can be changed or searched automatically, and allow a user to pick a mirror closest, or do some very basic failover.

An example is this package: https://github.com/NixOS/nixpkgs/blob/master/pkgs/tools/graphics/barcode/default.nix

    url = "mirror://gnu/${pname}/${pname}-${version}.tar.xz";

This then tells the download script to substitute the package and use the configured mirror. It might be useful for purl2url.py to either use something similar or to return something similar to what NixOS does, so the actual fetcher can then replace it with the correct mirror.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant