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

Packaging SteamKit for Guix #33

Open
Ambrevar opened this issue Feb 21, 2020 · 4 comments
Open

Packaging SteamKit for Guix #33

Ambrevar opened this issue Feb 21, 2020 · 4 comments

Comments

@Ambrevar
Copy link

Hi! Friendly cousin here again! :)

I'm trying to package SteamKit for Guix, and since you people have it here in this repository, I figured I would just ask.

As I understand, SteamKit must be compiled and it depends on Mono >= 5.4.

Guix only has Mono 4.4 :( I've tried updating it, but I get stuck with failing tests.
mono/mono#18979

I tried to copy Nix Mono definitions as close as possible. Typically, when Nix succeeds and Guix doesn't, it's because Guix does not have networking at build time. So this might be the issue here. Thoughts?

Otherwise, do you think it would be possible to get SteamKit to run without Mono 5.4?

Or do you know of any alternative to SteamKit?

Thanks in advance!

@Profpatsch
Copy link
Member

Typically, when Nix succeeds and Guix doesn't, it's because Guix does not have networking at build time. So this might be the issue here. Thoughts?

No, nix doesn’t either, except if you turn sandboxing off deliberately (which we don’t do).

@aszlig
Copy link
Member

aszlig commented Feb 23, 2020

I tried to copy Nix Mono definitions as close as possible. Typically, when Nix succeeds and Guix doesn't, it's because Guix does not have networking at build time. So this might be the issue here. Thoughts?

Hm, I doubt that, since what @Profpatsch said - it's the same with Nix, we don't have networking at build time. However, when looking at the Nix package I can see that we don't actually run the tests. I'm not the maintainer of the Mono package in nixpkgs, but maybe they ran into the same issue?

Otherwise, do you think it would be possible to get SteamKit to run without Mono 5.4?

Phew, it's been a while since I was working an SteamKit, but I think if you're using an older version of SteamKit, you might be able to get it to compile - however I'm not sure whether it would still be able to communicate with Steam.

Did you try whether it works if you temporarily disable tests for Mono 5.4?

Or do you know of any alternative to SteamKit?

Back then when I integrated SteamKit, it was the only alternative I could find, which allowed to download Steam depots without Steam itself. So no, at least I'm not aware of alternatives.

@Ambrevar
Copy link
Author

Ambrevar commented Feb 27, 2020 via email

@Ambrevar
Copy link
Author

I've made lots of progress:

  • Mono 6 seems to work (tests don't pass though).
  • I've packaged dotnet-sdk (using a binary archive like Nix does).
  • I've built msbuild and it can build a trivial project (the Nix test)

I'm stuck at building protobuf-net (a dep of SteamKit): msbuild fails.
I'm discussing the issue with Nix upstream:
NixOS/nixpkgs#81194

Pfeww, Mono is hard :(
Anyone knowledgeable with Mono in the Nix community?

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

3 participants