tweag / opam-nix

Turn opam-based OCaml projects into Nix derivations
MIT License
109 stars 32 forks source link

Support legacy opam repository 'url' file #50

Closed actionshrimp closed 1 year ago

actionshrimp commented 1 year ago

Adds support for an older format for opam repositories, where the url and checksum were split out into a separate file called 'url' rather than these being part of the main opam file, e.g. https://github.com/ocaml/opam-repository/blob/opam-1.0/packages/agrep.1.0/url

Even though the main opam repo doesn't use this format anymore, some other opam repos I interact with do, and opam itself still supports them. This patch allows opam-nix to work with them too.

balsoft commented 1 year ago

Thanks!