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

Build with Nix #55

Open
jackkav opened this issue Oct 7, 2023 · 1 comment
Open

Build with Nix #55

jackkav opened this issue Oct 7, 2023 · 1 comment

Comments

@jackkav
Copy link

jackkav commented Oct 7, 2023

When attempting to build with nix in this PR NixOS/nixpkgs#244595
Using the offline-build feature, I get the following error.

 Error: reqwest::Error { kind: Request, url: Url { scheme: "https", cannot_be_a_base: false, username: "", password: None, host: Some(Domain("dl.strem.io")), port: None, path: "/server/v4.20.2/desktop/server.js", query: None, fragment: None }, source: hyper::Error(Connect, ConnectError("dns error", Custom { kind: Uncategorized, error: "failed to lookup address information: Temporary failure in name resolution" })) }

I can see a couple options

  • fallback to a local copy within the repo in offline-mode
  • fallback to a local copy added by the nix config in offline-mode

Any ideas?

@tymmesyde
Copy link
Member

Not sure why it does this with the offline-build feature, my guess is that somehow it's not passed correctly to cargo ?
Looking at other scripts from the nixpkgs, it seems that they are using brackets around the cargoBuildFlags value

On another note: if you want a working build you need the server.js file, you will need to include it manually if you are using offline-build, you will also need the --release flag and the bundled feature

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