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
sonic-pi: 3.1.0 -> 3.2.0 #82043
sonic-pi: 3.1.0 -> 3.2.0 #82043
Conversation
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.
Looks good to me.
make | ||
mkdir build | ||
pushd build | ||
cmake -G "Unix Makefiles" .. |
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 know that is not changed in this PR, but shouldn't the call to CMake go in configurePhase? If you know a technical reason why it can not be in configurePhase, maybe it deserves a comment.
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.
Thanks for your review!
I tried moving the CMake to the configurePhase
, but it needs the /build/source/app/gui/qt/help_files.qrc
that is build using the server/ruby/bin/qt-doc.rb
script, which requires ruby
.. and apparently buildInputs
are not available in the configurePhase
.
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.
Wait, what? That breaks my understanding of Nix.
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.
Scratch my comment about ruby
not being present in the configurePhase, it is. I misread the logs. What is required is a file 2.6/ffi_c
which appears to be compiled by ./compile-extensions.rb
. It also needs the environment variables SONIC_PI_HOME
and AUBIO_LIB
..
I agree that CMake
should be in the configurePhase
, but hauling in all the other stuff from the buildPhase
feels wrong. What do you think?
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.
Seems fine with me in the buildPhase
Tested an works for me, but there have been 2 minor releases since. Do you mind updating to |
a5c4ca5
to
96bf815
Compare
Updated to 3.2.2 |
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.
Works for me
I tried this and it builds at least, which is better than current master. When running I have a similar issue if I don't use nixpkgs-review and just checkout this branch and build with |
@kimat do you have a working Jack setup? SonicPi uses Jack for Audio output. I start my Jack server using qjackctl and then have SonicPi connect, which works fine for me. |
@Sohalt It was an issue with jack indeed. I can now, confirm the following works :
|
this was probably not introduced by this update, but there is a lot unnecessary files in the output path. like .md files .html a .gitignore a .travis.yml and even windows executables. |
96bf815
to
8bbe246
Compare
Good point @Lassulus. I cleaned it up a bit and verified the app still works. Output went from 866M to 439M |
Motivation for this change
A new version of Sonic Pi has been released. The old version is currently broken because it depends on Ruby 2.4. This new version seems to work with Ruby 2.6.
Should this be merged in 20.03 as well so Sonic Pi can be used with that release?
I would like to become a maintainer of this package. I use it from time to time and am following the updates Sam Aaron (the creator) posts.
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)