-
-
Notifications
You must be signed in to change notification settings - Fork 14.2k
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
legends-of-equestria: init at 2024.05.01 #296316
base: master
Are you sure you want to change the base?
Conversation
Result of |
@hugolgst I did not add darwin to supported platforms because the build process would be totally different from that on linux. |
sorry mb didn't pay enough attention before running review |
Result of 1 package built:
|
It seems to work but I'm not sure what our precedent for having packages downloaded from MEGA is, even more so considering their bandwidth limits. I'd be more comfortable with a webarchive link or some other source. |
I can upload the file to archive.org and use that link instead, but that would make it difficult to have a working update script because uploading files to archive.org requires credentials. |
Yes, however downloading from mega makes it unfeasible for a lot of people to use if they've already hit the MEGA bandwidth limit, which in turn would prevent them from using this package. Uploading the file to a web archive is usually the standard procedure from what I know. An update script is nice, but that isn't very helpful if a lot of people are unable to use the package. |
I see the problem here. It is indeed correct that people that hit the free download quota will be unable to download the file (MEGA checks the quota based on the client's public IP address). However, I don't think the problem would appear on the end users' side. For people that are unable to download files from MEGA, they would not be able to download the software anyway with nixpkgs or not. This is because MEGA is the only official source of the software. For those who have a paid plan of MEGA and cannot download the file without their credentials, I think I may add somewhere for them to enter their MEGA credentials via Where the problems may really appear is on continuous integration systems such as those of nixpkgs. The problem is currently unimportant because this is the first package that uses MEGA as a source. In the future, if there are many packages that require files from MEGA, a continuous integration system can easily hit the free download quota if it tries to download many large files from MEGA behind the same IP address. I think this issue needs more discussing. Now, on using archive.org. I don't know whether it is appropriate to distribute an unfree software using a download link that is totally irrelevant to the official source. Most of the existing usage of archive.org in nixpkgs, as I see, is just a web archive for the official download link. This could be considered still an almost-official source because people generally agree that web archives on archive.org reliably save the same thing as what the web contents were originally. However, this consensus does not exist for user-uploaded contents on archive.org. A more acceptable alternative that I can think of is that I can put an archive.org link in the comment of the package for those who cannot download the necessary file from MEGA. They can manually download and extract the file and use a Then, on the update script. I admit that, for most cases, having an update script is not better than having a bunch of people not being able to use the package. However, I think this package can be considered a special case because it is an online game. It is important to keep an online game up-to-date because people cannot log in the game without an up-to-date client (at least this is the case for LoE). If they cannot log in, the package is just not different from being unusable. On the other hand, as I already argued, being unable to download files from MEGA is not quite a big problem for end users, so this does not make it preferable to sacrifice the update script. Upon some additional thoughts, though, I think it is still possible to have an update script if I finally decide to use an archive.org link as the source. I may develop a GitHub action that periodically checks for updates. If there is an update, download the file using my MEGA credentials and upload the files to archive.org using my credentials. In the update script, read the result of the GitHub action. There are two issues that I may have to look up for this approach to work. The first is how large files can a GitHub action download and upload. The second is what is the appropriate way of reading GitHub action results in the update script (almost all the GitHub REST APIs require a token, but I surely cannot put my token in the update script). |
I am trying to package for darwin, but the problem is that |
b36a2bf
to
dcc47f7
Compare
dcc47f7
to
73f1e1a
Compare
Description of changes
Added the game Legends of Equestria, a free-to-play MMORPG. I only packaged it for linux-x86_64. The developer distributed the game for darwin-x86_64 and darwin-aarch64 as well, but I do not have a macOS device to test.
Closes #289692.
Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Add a 👍 reaction to pull requests you find important.