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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
livi: init at 0.0.6 #295711
livi: init at 0.0.6 #295711
Conversation
Thanks for reviewing this.
I think I'm confused about this. I read the nix documentation about nativeBuildInputs and buildInputs. If I understand it correctly nativeBuildInputs are build time dependencies that are arch dependent. They make it possible to cross compile for other systems too. buildInputs are the runtime dependencies. right? I have an issue with this packages. It requires gstreamer on runtime. I assumed adding gst_all_1 packages to buildInputs would fix that.
I thought it should be better if a user of the app becomes the maintainer. That being said, I'm ok with maintaining it myself too. |
Oh you forgot to add
That's not the case. Just others will ping you for issues and build failures, and you can deal with automatic updates yourself. |
Thanks. adding
I added myself to the maintainers. Also, I squashed the commits and fixed the messages. I think it should fit the CONTRIBUTING.md now. |
pkgs/by-name/li/livi/package.nix
Outdated
gst_all_1.gstreamer | ||
gst_all_1.gst-plugins-base | ||
gst_all_1.gst-plugins-bad | ||
gst_all_1.gst-plugins-good |
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.
These gst packages should be in buildInputs
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.
Oh. I miss interpreted the previous review and instead of moving the last line, I moved the whole highlighted section into nativeBuildInput
. I'll fix this.
How do you know which packages should get into buildInputs
?
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 should admit that I mostly go by feel. Packages that are used at build time should go in nativeBuildInputs
, and packages that are linked or called at runtime should go in buildInputs
. If you want a very accurate representation, you can add strictDeps = true
to this package (recommended), in this way if you don't do it correctly, you'll fail to build.
pkgs/by-name/li/livi/package.nix
Outdated
gst_all_1.gst-plugins-good | ||
appstream-glib | ||
gtk4 | ||
libadwaita |
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.
gtk4
and libadwaita
should also be in buildInputs
pkgs/by-name/li/livi/package.nix
Outdated
meta = with lib; { | ||
homepage = "https://gitlab.gnome.org/guidog/livi"; | ||
description = "A small video player targeting mobile devices (also named 渭Player)"; | ||
license = licenses.gpl3; |
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.
license = licenses.gpl3; | |
license = licenses.gpl3Plus; |
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 think it should be changed into gpl3Only
based on this https://gitlab.gnome.org/guidog/livi/-/blob/main/COPYING
It seems like gpl3
is deprecated but I didn't get any warnings in the build.
Do you know why my builds don't care about the meta section? It was the same with the maintainer field as well. I didn't notice any issues with it but Borg caught it and failed.
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 think it should be changed into gpl3Only based on this https://gitlab.gnome.org/guidog/livi/-/blob/main/COPYING
It's at the top of c source files. Also the flathub
uses gpl3Plus
.
It seems like gpl3 is deprecated but I didn't get any warnings in the build.
Do you know why my builds don't care about the meta section? It was the same with the maintainer field as well. I didn't notice any issues with it but Borg caught it and failed.
Because It does not use these sections.
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.
lgtm. Please squash your commits into livi: init at 0.0.6
(except adding maintainer)
@@ -0,0 +1,55 @@ | |||
{ 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.
Should I order the args alphabetically here?
I noticed that some packages put builtins like lib, stdenv,... first and then order the deps alphabetically.
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 needed. You can also sort them in the order they are used. It's up to you. But lib
should be placed in first order.
Description of changes
source URL: https://gitlab.gnome.org/guidog/livi
closes #295373
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.