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
cozy-audiobooks: init at 0.6.3 #47631
Conversation
31304e7
to
a169937
Compare
No attempt on x86_64-darwin (full log) The following builds were skipped because they don't evaluate on x86_64-darwin: cozy-audiobooks Partial log (click to expand)
|
Success on aarch64-linux (full log) Attempted: cozy-audiobooks Partial log (click to expand)
|
Success on x86_64-linux (full log) Attempted: cozy-audiobooks Partial log (click to expand)
|
, gnome3 | ||
}: | ||
|
||
stdenv.mkDerivation rec { |
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.
buildPythonApplication
seems to be better for this. See gnome-music.
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 see how this would work as there is no setup.py
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.
buildPythonApplication
takes a parameter format
which should be set to other
in this case
format = "other"; |
This defaults to "setuptools" which is for when there's a setup.py
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.
okay, i changed that. who knew!
, appstream-glib | ||
, desktop-file-utils | ||
, gtk3 | ||
, glib |
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.
gtk3 propagates glib so can drop glib.
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 to work, however i am not sure how anyone would know arcane wisdom this when packaging if not explicitly being told.
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, we're trying to get some docs 🤣
postInstall = '' | ||
wrapProgram $out/bin/com.github.geigi.cozy \ | ||
--prefix PYTHONPATH : "$PYTHONPATH:$(toPythonPath $out)" | ||
ln -s $out/bin/com.github.geigi.cozy $out/bin/cozy-audiobooks |
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 author intended for the executable to be rddn'd and I think this won't match the Exec
in the .desktop file either.
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.
you mean renamed to cozy
? i can do that
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 just checked, com.github.geigi.cozy is inside the .desktop file, i still think symlinking it to something you can actually find in your path is a good idea.
cairo | ||
gettext | ||
gnome3.defaultIconTheme | ||
gnome3.gsettings-desktop-schemas |
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.
gnome3.gsettings-desktop-schemas
is also propagated by gtk3.
A modern audio book player for Linux using GTK+ 3 | ||
''; | ||
maintainers = [ maintainers.makefu ]; | ||
license = licenses.mit; |
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.
pkgs/top-level/all-packages.nix
Outdated
@@ -653,6 +653,8 @@ with pkgs; | |||
|
|||
chkcrontab = callPackage ../tools/admin/chkcrontab { }; | |||
|
|||
cozy-audiobooks = callPackage ../applications/audio/cozy-audiobooks { }; |
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 should be just cozy
.
@worldofpeace thanks for the review! |
gst-plugins-good | ||
gst-plugins-ugly | ||
gst-plugins-base | ||
]) ++ (with python3Packages; [ |
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.
If you use buildPythonApplication
these buildInputs
++ (with python3Packages; [...
should be propagatedBuildInputs
.
a169937
to
0a2dab2
Compare
Make sure to also change the directory from Also the attribute name in the commit message. |
]); | ||
|
||
propagatedBuildInputs = with python3Packages; [ | ||
python |
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.
You can drop this python
.
I followed the archlinux packaging naming ( https://aur.archlinux.org/packages/cozy-audiobooks/ ), also there is a python package called |
0a2dab2
to
b75f211
Compare
Success on x86_64-linux (full log) Attempted: cozy Partial log (click to expand)
|
No attempt on x86_64-darwin (full log) The following builds were skipped because they don't evaluate on x86_64-darwin: cozy Partial log (click to expand)
|
Success on aarch64-linux (full log) Attempted: cozy Partial log (click to expand)
|
LGTM but I'm not the best person to review peewee here. cc @FRidh @dotlambda for |
@GrahamcOfBorg build python2Packages.peewee |
Success on x86_64-linux (full log) Attempted: python2Packages.peewee Partial log (click to expand)
|
Success on x86_64-darwin (full log) Attempted: python2Packages.peewee Partial log (click to expand)
|
Success on aarch64-linux (full log) Attempted: python2Packages.peewee Partial log (click to expand)
|
buildPythonPackage rec { | ||
|
||
pname = "peewee"; | ||
version = "3.7.0"; |
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.
They're at 3.7.1 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.
i cross fingers that they do not release a new version until tomorrow
|
||
pname = "peewee"; | ||
version = "3.7.0"; | ||
src = fetchFromGitHub { |
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.
probably should use fetchPypi
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 pypi package is missing the tests
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.
Maybe a comment like that 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.
ok
b75f211
to
f20899d
Compare
No attempt on x86_64-darwin (full log) The following builds were skipped because they don't evaluate on x86_64-darwin: cozy Partial log (click to expand)
|
Success on x86_64-linux (full log) Attempted: cozy Partial log (click to expand)
|
Success on aarch64-linux (full log) Attempted: cozy Partial log (click to expand)
|
@makefu Thanks for your contribution ❇️ 🎆 |
Motivation for this change
add the cozy-audiobook package
Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)nix path-info -S
before and after)