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
mate-desktop: some fixes, improvements, and new packages #33039
Conversation
…op_schemas Now it is propagated by gtk3.
mate-control-center depends on mate-settings-daemon, but the later needs gsettings schemas provided by the former. To fix this the gsettings schema path from mate-control-center is added to XDG_DATA_DIRS at session startup.
There is a bug on the glib hooker that prevents running its pre fixup phase if it is listed before hicolor_icon_theme in the dependencies of a derivation.
pythonPackages.pygobject3 | ||
]; | ||
|
||
configureFlags = [ "--with-cajadir=$$out/lib/caja/extensions-2.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.
Does this actually eventualy get expanded correctly? Usually it's done like this:
preConfigure = ''
configureFlagsArray+=("--with-cajadir=$$out/lib/caja/extensions-2.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.
It is working here and in other packages too.
$ nix-build --option build-use-chroot true -K -A mate.python-caja 2>&1 | tee /var/tmp/nix-build.log
[...]
Libraries have been installed in:
/nix/store/72q7hql2lwwmgqm5jd3lr896mqkv53fq-python-caja-1.18.1/lib/caja/extensions-2.0
[...]
$ find . -type f -exec grep --color -nH -e 'configureFlags.*\$\$' {} +
./pkgs/desktops/mate/python-caja/default.nix:27: configureFlags = [ "--with-cajadir=$$out/lib/caja/extensions-2.0" ];
./pkgs/desktops/mate/python-caja/default.nix~:26: configureFlags = [ "--with-caja-extension-dir=$$out/lib/caja/extensions-2.0" ];
./pkgs/desktops/mate/caja-dropbox/default.nix:26: configureFlags = [ "--with-caja-extension-dir=$$out/lib/caja/extensions-2.0" ];
./pkgs/desktops/mate/caja-dropbox/default.nix~:34: configureFlags = [ "--with-cajadir=$$out/lib/caja/extensions-2.0" ];
./pkgs/desktops/mate/engrampa/default.nix:29: configureFlags = [ "--with-cajadir=$$out/lib/caja/extensions-2.0" ];
./pkgs/desktops/mate/caja-extensions/default.nix:35: configureFlags = [ "--with-cajadir=$$out/lib/caja/extensions-2.0" ];
./pkgs/applications/editors/emacs-modes/maude/default.nix:12: configureFlags = "--with-lispdir=$$out/share/emacs/site-lisp";
./pkgs/applications/editors/emacs-modes/bbdb/default.nix:15: configureFlags = "--with-package-dir=$$out/share/emacs/site-lisp";
./pkgs/development/libraries/libmtp/default.nix:17: configureFlags = [ "--with-udev=$$bin/lib/udev" ];
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.
Searching for '$$'
in nix files shows several other cases of using '$$'
in configureFlags
.
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, fair enough. But it really is a bad pattern to do, it's a completely unpredictable whether it's going to work or not, or even fail silently.
For example before commit 3d59a8e ncurses appeared to build fine, but the pkgconfig file was wrong, containing unexpanded $(out)
/ $$out
etc.
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.
In the next updates I can abandon this bad pattern and follow your suggestion.
Nice work! |
Things done
build-use-sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)