Stremio / stremio-service

GNU General Public License v2.0
103 stars 6 forks source link

Build with Nix #55

Open jackkav opened 9 months ago

jackkav commented 9 months ago

When attempting to build with nix in this PR https://github.com/NixOS/nixpkgs/pull/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

Any ideas?

tymmesyde commented 9 months ago

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