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
lollypop-portal: init at 0.9.7 #43447
Conversation
a25e997
to
373f88c
Compare
@cocreature Can you test this? |
postFixup = '' | ||
buildPythonPath "$out/libexec/lollypop-portal $pythonPath" | ||
|
||
wrapProgram $out/libexec/lollypop-portal \ |
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.
Alternately, you can append to gappsWrapperArgs
:
nixpkgs/pkgs/desktops/gnome-3/core/nautilus/default.nix
Lines 26 to 33 in 9bbb84f
preFixup = '' | |
gappsWrapperArgs+=( | |
# Thumbnailers | |
--prefix XDG_DATA_DIRS : "${gdk_pixbuf}/share" | |
--prefix XDG_DATA_DIRS : "${librsvg}/share" | |
--prefix XDG_DATA_DIRS : "${shared-mime-info}/share" | |
) | |
''; |
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.
Lol That's what I was trying to do
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.
It seems that this won't make a wrapper for the program at libexec which is why I think I did this.
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:
--- a/pkgs/misc/lollypop-portal/default.nix
+++ b/pkgs/misc/lollypop-portal/default.nix
@@ -14,7 +14,7 @@
sha256 = "0rn5xmh6391i9l69y613pjad3pzdilskr2xjfcir4vpk8wprvph3";
};
- nativeBuildInputs = [
+ nativeBuildInputs = [
gobjectIntrospection
meson
ninja
@@ -41,15 +41,12 @@
pycairo
];
- dontWrapGApps = true;
-
- postFixup = ''
+ preFixup = ''
buildPythonPath "$out/libexec/lollypop-portal $pythonPath"
-
- wrapProgram $out/libexec/lollypop-portal \
- "''${gappsWrapperArgs[@]}" \
- --prefix PYTHONPATH : "$program_PYTHONPATH" \
- --prefix PATH : "${stdenv.lib.makeBinPath [ easytag kid3 ]}"
+ gappsWrapperArgs+=(
+ --prefix PYTHONPATH : "$program_PYTHONPATH"
+ --prefix PATH : "${stdenv.lib.makeBinPath [ easytag kid3 ]}"
+ )
'';
meta = with stdenv.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.
Weird I ended up with the same change and it fails?
Can you run ./result/libexec/lollypop-portal
without an import error?
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.
Yep, produces almost the same wrapper file (the order of variables is slightly different).
373f88c
to
d2c2f34
Compare
@worldofpeace Thanks a lot! I can confirm that this works for me! I have two small comments:
|
@cocreature Thanks for your comments.
It is true that this isn't a required dependency because the author is responsible for the ubuntu packaging and it's not required there. Maybe I could improve the package descriptions also, since a
kid3-cli needs to be in the path for you to set the cover and popularity. |
Alright, sounds good! No further comments from my side. For now just depending on easytag is totally fine for me. |
Your exclamation confused me. 😆 |
Sorry about that 😀 |
This commit introduces evaluation errors into Nixpkgs:
|
Cool, thank you! |
Motivation for this change
This #43292
Notes
I didn't exactly know where this belonged in nixpkgs so feel free to suggest a better place.
There will also need to be a stupid simple nixos module for this.
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)