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

dhall-nixpkgs Unsupported domain error #2090

Closed
PierreR opened this issue Nov 11, 2020 · 2 comments
Closed

dhall-nixpkgs Unsupported domain error #2090

PierreR opened this issue Nov 11, 2020 · 2 comments

Comments

@PierreR
Copy link
Contributor

PierreR commented Nov 11, 2020

We have had to re-generate dhall-kubernetes to minimize the effect of #1890 . We are using an internal SCM to host it (it doesn't make sense to make it public).

Unfortunately when we try to use dhall-to-nixpkgs we received this error message:

Error: Unsupported domain

This tool currently only translates the following domains into Nix dependencies:

* raw.githubusercontent.com
* prelude.dhall-lang.org

One of the Dhall project's dependencies:

↳ http://stash.lan/projects/OC/repos/dhall-openshift/raw/package.dhall?at=0z7d64944e30334fdfaf4149775bafaa14a8df58

... used the following unexpected domain:

↳ stash.lan

If you would like to support a new domain for Dhall dependencies, please open an
issue here:

↳ https://github.com/dhall-lang/dhall-haskell/issues

Is there a way to add internal domains to nixpkgs ?

Not sure if it is a proper use case for dhall-nixpkgs but I was hoping to mitigate this issue.

@PierreR
Copy link
Contributor Author

PierreR commented Nov 11, 2020

This is minor annoyance. I can always clone the internal repo on github (it is not something that is going to change often).

I will close the issue as it might not be relevant enough.

@PierreR PierreR closed this as completed Nov 11, 2020
@Gabriella439
Copy link
Collaborator

@PierreR: Also, note that dhall-to-nixpkgs is only a convenience for generating Nix code. You can also author the equivalent code by hand if it's stable. It's not yet documented (because I'm blocked on upstream code reviews)

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

2 participants