-
-
Notifications
You must be signed in to change notification settings - Fork 14.9k
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
zxtune: init at r5054 #265519
zxtune: init at r5054 #265519
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.
Thanks for packaging zxtune!
Package builds and zxtune-qt launches.
Result of nixpkgs-review pr 265519
run on x86_64-linux 1
1 package built:
- zxtune
in with lib; | ||
stdenv.mkDerivation rec { | ||
pname = "zxtune"; | ||
version = "r5054"; |
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.
version = "r5054"; | |
version = "5054"; |
Usually the version attribute starts with a digit.
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.
Done.
src = fetchFromBitbucket { | ||
owner = "zxtune"; | ||
repo = "zxtune"; | ||
rev = "${version}"; |
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.
rev = "${version}"; | |
rev = "r${version}"; |
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.
Done.
platformName = "linux"; | ||
staticBuildInputs = [ boost zlib ] | ||
++ lib.optional withQt (if (supportWayland) then qt5.qtwayland else qt5.qtbase); | ||
in with lib; |
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'm not sure, but I believe with lib;
should be avoided in front of package definitions. This one uses only a few lib.*
functions.
d05c42a
to
f0e92db
Compare
Thanks for the review! |
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.
Result of nixpkgs-review pr 265519
run on x86_64-linux 1
1 package built:
- zxtune
I'm assuming you tested the off-by-default file/audio backends.
''; | ||
homepage = "https://zxtune.bitbucket.io/"; | ||
license = licenses.gpl3; | ||
platforms = platforms.linux; |
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.
This is set to Linux because you can't test on Darwin, right?
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.
Exactly. I suspect there will need to be some more tricks in the makefile stuff.
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.
Good to know (and perfectly acceptable, most maintainers can't test on Darwin). It was a bit confusing to see all those isLinux
/ isDarwin
checks and then this line at the end.
I'd put a short comment above the "platforms =" line so future readers are not confused.
"support_${name}=" + (if (var) then "1" else ""); | ||
makeOptsCommon = [ | ||
''-j$NIX_BUILD_CORES'' | ||
''root.version=${version}'' |
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.
Not r${version}
?
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.
Yeah, should be, will do.
Uh oh. You caught me! It doesn't build with SDL2 enabled. |
7a9afe6
to
855771c
Compare
OK, I think I have addressed all the review feedback now! Thanks for the thoughtful comments.
|
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.
Result of nixpkgs-review pr 265519
run on x86_64-linux 1
1 package built:
- zxtune
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/prs-ready-for-review/3032/2919 |
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.
Result of nixpkgs-review pr 265519
run on x86_64-linux 1
1 package built:
- zxtune
Welcome to nixpkgs! This one is looking pretty good!
Runs fine on my end, just some small nits and improvements
preFixup = lib.optionalString withQt '' | ||
wrapQtApp "$out/bin/zxtune-qt" | ||
''; | ||
|
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.
passthru.updateScript = nix-update-script { | |
attrPath = "zxtune"; | |
extraArgs = [ "--version-regex" "r(.*)" ]; | |
}; | |
{ lib | ||
, stdenv | ||
, fetchFromBitbucket | ||
, boost |
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.
, boost | |
, nix-update-script | |
, boost |
]; | ||
|
||
postPatch = '' | ||
sed -e 's@OpenAL/@AL/@g' -i src/sound/backends/gates/openal_api.h |
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.
sed -e 's@OpenAL/@AL/@g' -i src/sound/backends/gates/openal_api.h | |
substituteInPlace src/sound/backends/gates/openal_api.h \ | |
--replace "OpenAL/" "AL/" |
make ${builtins.toString makeOptsCommon} -C apps/xtractor | ||
make ${builtins.toString makeOptsCommon} -C apps/zxtune123 | ||
'' + lib.optionalString withQt '' | ||
make ${builtins.toString (makeOptsCommon ++ makeOptsQt)} -C apps/zxtune-qt |
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.
make ${builtins.toString makeOptsCommon} -C apps/xtractor | |
make ${builtins.toString makeOptsCommon} -C apps/zxtune123 | |
'' + lib.optionalString withQt '' | |
make ${builtins.toString (makeOptsCommon ++ makeOptsQt)} -C apps/zxtune-qt | |
runHook preBuild | |
make ${builtins.toString makeOptsCommon} -C apps/xtractor | |
make ${builtins.toString makeOptsCommon} -C apps/zxtune123 | |
'' + lib.optionalString withQt '' | |
make ${builtins.toString (makeOptsCommon ++ makeOptsQt)} -C apps/zxtune-qt | |
'' + '' | |
runHook postBuild |
Changes:
|
@ofborg eval I've been listening to my old game soundtrack rips for nearly an hour now. Love this |
pkgs/by-name/zx/zxtune/package.nix
Outdated
longDescription = '' | ||
Player of computer music from ZX Spectrum, Amstrad, Sam Coupe, PC, Amiga, | ||
Atari, Acorn, C64, SNES, Nes, Sega Master System, GameBoy, TurboGrafX, | ||
MSX, NDS, and 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.
MSX, NDS, and more. | |
MSX, NDS, and more. Powered by vgmstream. |
For the sake of discoverability
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.
(ofborg seems to need the force push anyway)
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.
Nice idea. Updated description and included other notable libraries. Also bumped version to r5055.
Successfully created backport PR for |
Description of changes
zxtune is a cross-platform chiptunes music player.
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/
)