-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
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
ruffle: nightly-2024-11-07 -> nightly-2025-01-04 #371012
base: master
Are you sure you want to change the base?
Conversation
2bad9e7
to
4a1bc16
Compare
4a1bc16
to
7967794
Compare
e058c96
to
4f0a3e7
Compare
|
|
For some reason |
pkgs/by-name/ru/ruffle/package.nix
Outdated
@@ -97,9 +102,9 @@ rustPlatform.buildRustPackage { | |||
cargoLock = { | |||
lockFile = ./Cargo.lock; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could use the new fetcher to avoid copying Cargo.lock into nixpkgs.
diff --git a/pkgs/by-name/ru/ruffle/package.nix b/pkgs/by-name/ru/ruffle/package.nix
index 5ac9463f0344..1e4bc1af870d 100644
--- a/pkgs/by-name/ru/ruffle/package.nix
+++ b/pkgs/by-name/ru/ruffle/package.nix
@@ -99,16 +99,8 @@ rustPlatform.buildRustPackage {
cargoBuildFlags = [ "--workspace" ];
- cargoLock = {
- lockFile = ./Cargo.lock;
- outputHashes = {
- "flash-lso-0.6.0" = "sha256-LMfJ97GoVxz7NIO1WRcDoJzxedg7/g5Cncx1natd4UQ=";
- "h263-rs-0.1.0" = "sha256-t9yb3d0tiCf8eaK3PwIxsvsw1FH3VHHLLYWbHIxyezI=";
- "jpegxr-0.3.1" = "sha256-zmFwTn37QB/dXEC2wTmGJRmpaJFskNxja5AQMLzJvcI=";
- "nellymoser-rs-0.1.2" = "sha256-66yt+CKaw/QFIPeNkZA2mb9ke64rKcAw/6k/pjNYY04=";
- "nihav_codec_support-0.1.0" = "sha256-HAJS4I6yyzQzCf+vmaFp1MWXpcUgFAHPxLhfMVXmN1c=";
- };
- };
+ useFetchCargoVendor = true;
+ cargoHash = "sha256-q+9yhUjYolPlBt6W1xJPoyE7DgqDffEhkQqJmSX4y3Y=";
meta = with lib; {
description = "Adobe Flash Player emulator written in the Rust programming language";
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The new fetcher was designed for git dependencies. I don't think there is any other reason to use it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know anything about the Rust tooling in Nix, but I would be ecstatic if we could get rid of the need to include the cargo.lock file in Nixpkgs. Sounds like we can with no major downsides. So please go for it.
@GovanifY seems busy and hasn't participated a whole ton with ruffle maintainership in Nixpkgs, it might be about time to remove them from maintainers so we can stop bothering them for now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jchv Sure, fine by me. I was pretty busy when you started taking over the maintainership and since then you've been leading the PRs, so I've let you to it ^^". Thanks for the work since then!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SGTM, thanks for chiming in; one of us will probably do this at some point in a future PR. Thanks your work before me, as well! As long as I am healthy and able I'll try to continue to participate in maintainership of the Ruffle derivation indefinitely, and obviously it's a simple matter to re-add yourself anyways.
I know Ruffle has been gearing up for a "stable" release in the near future. My plan is that we can add some NixOS tests to ensure Ruffle is functioning properly and make maintainership of Ruffle low-touch, with automatic updating and testing to take care of the majority of the work.
4f0a3e7
to
9ce3a29
Compare
I force pushed the PR to fix the issue with the desktop file on Linux which had |
9ce3a29
to
5ba6581
Compare
I again force pushed to add FliegendeWurst's recommendation to use |
5ba6581
to
0d0992d
Compare
0d0992d
to
e540e5d
Compare
Another force push to rewrite |
Updates the Ruffle package to version
nightly-2025-01-04
, updating the relevantsrc
,Cargo.lock
and git hashes. Additionally, there is a patch for adding desktop file, icon and meta info support for Ruffle on Linux which installs them in thepostInstall
phase.I can also confirm that #285887 is still an issue due to the deterministic build flag. To solve this, I believe we should have a
ruffle-bin
package that downloads a pre-compiled ruffle binary (which only contains the standalone player) which avoids the uphill task of separating derivations. It would also allow for easynix-update-script
usage to automatically update ruffle.Issue #285887 can be reproduced using the various date swf files listed on this page: (https://edmullen.net/fclock.php).
which provides the dummy time (2001-02-03 04:05:06) when a Flash application requests the time.
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.