!XQQVyIbcAcHFvzmcTl:nixos.org

NixOS GNOME

405 Members
A room for maintainers of GNOME & GNOME-Related desktop environments (xfce, cinnamon, pantheon...)92 Servers

Load older messages


SenderMessageTime
26 Dec 2023
@whiteblackgoose:matrix.orgWhiteBlackGoose Hi
Does overlay over gnome allow to overlay Mutter?
19:37:24
@whiteblackgoose:matrix.orgWhiteBlackGoose

I mean

  nixpkgs.overlays = [
    (final: prev: {
      gnome = prev.gnome // {
        mutter = prev.gnome.mutter.overrideAttrs {

19:37:47
@whiteblackgoose:matrix.orgWhiteBlackGooseand another question I'm trying out the Mutter by Daniel van Dugt who is working on triple buffering But I cannot figure out the way to make sure I'm actually on the right one I don't feel any difference after I wrote the overlay, and also it didn't take any time to build Mutter so I suppose I'm on the same one19:39:21
@whiteblackgoose:matrix.orgWhiteBlackGooseaand another Q now that I'm rebooted it's a lot smoother so I guess it gets slower over time Why is that happening though?19:45:39
@jtojnar:matrix.orgJan Tojnar
In reply to @whiteblackgoose:matrix.org

I mean

  nixpkgs.overlays = [
    (final: prev: {
      gnome = prev.gnome // {
        mutter = prev.gnome.mutter.overrideAttrs {

Use gnome = prev.gnome.overrideScope' (gnomeFinal: gnomePrev: {…})
21:33:11
@jtojnar:matrix.orgJan Tojnar with //, the packages in gnome scope would keep referring to the old mutter 21:34:25
@whiteblackgoose:matrix.orgWhiteBlackGoose
In reply to @jtojnar:matrix.org
Use gnome = prev.gnome.overrideScope' (gnomeFinal: gnomePrev: {…})
Ah thanks!
And what do I write inside then?
gnomePrev // { ... } doesn't work (it still overwrites the whole gnome for some reason)
21:46:00
@jtojnar:matrix.orgJan Tojnarit works just like another overlay, define mutter there21:46:55
@whiteblackgoose:matrix.orgWhiteBlackGoose
gnome = prev.gnome.overrideScope' (gnomeFinal: gnomePrev: {
        mutter = gnomePrev.mutter.overrideAttrs {

like this?

21:48:07
@whiteblackgoose:matrix.orgWhiteBlackGoose because it later says "gedit is not found" or something, whcih means that gnome lost all other properties 21:51:26
@whiteblackgoose:matrix.orgWhiteBlackGooseOh I found an example for Mutter on wiki nvl21:52:23
@whiteblackgoose:matrix.orgWhiteBlackGoose * Oh I found an example for Mutter on wiki nvm21:52:25
@jtojnar:matrix.orgJan Tojnarthere was some issue where it broke aliases, not sure if we ever fixed it21:53:46
@jtojnar:matrix.orgJan Tojnar either way, I recommend using nixpkgs.config.allowAliases = false; 21:54:29
@whiteblackgoose:matrix.orgWhiteBlackGoose I tried setting that option and I'm getting attribute nixFlakes is missing 😅 21:56:32
@jtojnar:matrix.orgJan Tojnaryes, because that is an alias too21:57:24
@whiteblackgoose:matrix.orgWhiteBlackGooseohhh21:57:37
@whiteblackgoose:matrix.orgWhiteBlackGoosehow to view what an alias stands for?21:58:09
@jtojnar:matrix.orgJan Tojnarhttps://github.com/NixOS/nixpkgs/blob/cacf372fa697eaa7b8bd6c0b5d77f6c226b854bc/pkgs/top-level/aliases.nix#L64121:58:16
@jtojnar:matrix.orgJan Tojnarfor gnome https://github.com/NixOS/nixpkgs/blob/cacf372fa697eaa7b8bd6c0b5d77f6c226b854bc/pkgs/desktops/gnome/default.nix#L26421:58:49
@whiteblackgoose:matrix.orgWhiteBlackGooseaaalright21:59:22
@whiteblackgoose:matrix.orgWhiteBlackGooseis there no CLI way to check the alias? I might need to go over my packages now22:00:12
@jtojnar:matrix.orgJan TojnarI do not think so. From Nix POV, it is just a binding.22:00:52
@whiteblackgoose:matrix.orgWhiteBlackGoosemakes sense22:01:02
@whiteblackgoose:matrix.orgWhiteBlackGoosethe files you linked cover that ig22:01:09
@jtojnar:matrix.orgJan Tojnarwe could probably make a tool that would try to bisect aliases but it is probably not worth the effort22:02:09
@whiteblackgoose:matrix.orgWhiteBlackGooseAlright so it almost worked I hit a syntax error in a glib header file during build... a lot of syntax errors Any idea why?22:26:46
@whiteblackgoose:matrix.orgWhiteBlackGoose

This is my overlay:

  nixpkgs.overlays = [
    (final: prev: {
      gnome = prev.gnome.overrideScope' (gnomeFinal: gnomePrev: {
        mutter = gnomePrev.mutter.overrideAttrs ( old: {
          patches = (old.patches or []) ++ [ "${pkgs.fetchpatch {
            url = "https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1441/diffs.patch";
            sha256 = "sha256-5r4UP4njxrfRebItzQBPrTKaPUzkWA+9727YdWgBCpA=";
          }}" ];
          src = pkgs.fetchgit {
            url = "https://gitlab.gnome.org/GNOME/mutter.git";
            rev = "3a94822e755e530b71c33bb5bce0e8faa438983c";
            sha256 = "sha256-BTBDEIefqFmzMEE85KwEhkcNlL/9UaMp10rXjWmspKQ=";
          };
        } );
      });
    })
  ];

22:27:03
@whiteblackgoose:matrix.orgWhiteBlackGoosenot sure if it makes sense to attach the error22:28:15
@whiteblackgoose:matrix.orgWhiteBlackGooseDownload gnome-mutter-build.log22:28:31

Show newer messages


Back to Room ListRoom Version: 6