Skip to content

Comments

gnomeExtensions.system-monitor: fix this package and upgrade to v33#36410

Merged
7c6f434c merged 3 commits intoNixOS:masterfrom
tiramiseb:gnome-shell-extension-system-monitor
Mar 28, 2018
Merged

gnomeExtensions.system-monitor: fix this package and upgrade to v33#36410
7c6f434c merged 3 commits intoNixOS:masterfrom
tiramiseb:gnome-shell-extension-system-monitor

Conversation

@tiramiseb
Copy link
Contributor

Motivation for this change

Having a working extension :)

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option build-use-sandbox in nix.conf on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Fits CONTRIBUTING.md.

See the mailing list for a discussion about the sessionPath parameter in gnome3 (https://groups.google.com/forum/#!topic/nix-devel/jJevoZx2ZFo)...

@GrahamcOfBorg GrahamcOfBorg added 6.topic: GNOME GNOME desktop environment and its underlying platform 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux. labels Mar 7, 2018
stdenv.mkDerivation rec {
name = "gnome-shell-system-monitor-${version}";
version = "8b31f070e9e59109d729661ced313d6a63e31787";
version = "v33";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For Nix to understand the version, it must start with a number. (Change this one to "33" and set rev = "v${version}"; below.)

Copy link
Contributor

@bjornfor bjornfor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. (Just nitpick about Nix version.)

@jtojnar
Copy link
Member

jtojnar commented Mar 7, 2018

Maybe it would be possible to patch the extension files to use g_irepository_prepend_search_path. Something like adding imports.gi.GIRepository.Repository.prepend_search_path('@GI_TYPELIB_PATH@') to the top of the extension.js file?

@tiramiseb
Copy link
Contributor Author

Thanks for the idea @jtojnar ! I will take a look.

@jtojnar
Copy link
Member

jtojnar commented Mar 7, 2018

Not sure how safe it is wrt conflicts (e.g one extension adds libfoo-X.Y.A and other adds libfoo-X.Y.B). Apparently, there is only one GI repository per process. Maybe try testing it.

@tiramiseb
Copy link
Contributor Author

I was going to try this approach, but I realized I don't know how I can retrieve the packages paths to include them with prepend_search_path...

@jtojnar
Copy link
Member

jtojnar commented Mar 11, 2018

You could use patches with substituteAll:

patches = [
(substituteAll {
src = ./fix-paths.patch;
xkbcomp = "${xkbcomp}/bin/xkbcomp";
})
];

@tiramiseb
Copy link
Contributor Author

Great, thanks @jtojnar !
I have done it, and tested it. It works perfectly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: GNOME GNOME desktop environment and its underlying platform 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants