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

Extensible flake references #2871

Closed
edolstra opened this issue Feb 13, 2019 · 2 comments
Closed

Extensible flake references #2871

edolstra opened this issue Feb 13, 2019 · 2 comments
Labels

Comments

@edolstra
Copy link
Member

Further to #5, it's useful to obtain non-flake dependencies via other schemes than the ones currently built in (i.e. Git, GitHub, and tarballs). For example, we may want to specify a flake dependency such as:

requires = [ pypi:numpy ];

which would mean "get the source of the latest version of numpy from pypi". This would translate into a regular lock file entry such as

        "pypi:numpy": {
            "uri": "https://files.pythonhosted.org/packages/2b/26/07472b0de91851b6656cbc86e2f0d5d3a3128e7580f23295ef58b6862d6c/numpy-1.16.1.zip?hash=sha256-31d3fe5b673e99d33d70cfee2ea8fe8dccd60f265c3ed990873a88647e3dd288"
        }

Some of these should probably be built into Nix (as long as they don't require pulling in crazy dependencies for doing the lookups), but it should also be possible to provide them via plugins.

@CSVdB
Copy link
Contributor

CSVdB commented Apr 17, 2019

Which options would you want exactly? It would be clearer as an issue to choose a few and make issues for them. We could also wait for the beta and ask people which ones they would be interested in, but this isn't really an "issue" given that it can never really be completed.

@grahamc grahamc transferred this issue from another repository May 16, 2019
@grahamc grahamc added the flakes label May 16, 2019
@edolstra
Copy link
Member Author

Closing, new input types can be defined by plugins now.

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

No branches or pull requests

3 participants