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
sonata: fix gsettings schemas #96622
Conversation
@@ -16,7 +16,7 @@ in buildPythonApplication rec { | |||
|
|||
disabled = !isPy3k; | |||
|
|||
nativeBuildInputs = [ pkgconfig gettext ]; | |||
nativeBuildInputs = [ pkgconfig gettext 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.
this should be a buildInputs
and a setup hook wrapGAppsHook
should never be in buildInputs
, but rather nativeBuildInputs
.
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.
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.
actually, the dependencies in here are very strange. gobject-introspection
is propagated, but that isn't a python dependency. gobject-introspection
should be native and gtk3
should be build.
It also uses pythonPath
and propagatedBuildInputs
, and for a python package I don't see why we couldn't just use pythonPath
. Also note that gobject-introspection's setup-hook isn't working correctly here #56943, so you need to set strictDeps = false
. Also reference the issue in a comment above that line.
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.
glib
is only used for the hooks here, that's why I put it in nativeBuildInputs
. I had no idea what was going on. Thanks for pointing me to #56943, adding strictDeps
worked!
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.
Motivation for this change
Otherwise you get the error
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)