Using lix-module with nixos-unstable revision causes rebuild of large packages #44

Closed
opened 2024-11-07 20:18:41 +00:00 by skykanin · 2 comments

with the flake input config:

inputs = {
  lix-module = {
    url = "git+https://git.lix.systems/lix-project/nixos-module";
    inputs.nixpkgs.follows = "nixpkgs";
  };

  nixpkgs.url = "github:NixOS/nixpkgs?rev=4ae2e647537bcdbb82265469442713d066675275";
};

using the inputs.lix-module.nixosModules.default module overlay forces a manual build of webkitgtk-* packages which is problematic as it requires an enormous amount of CPU time and RAM to build. Removing the module from my configuration solved this problem and fetched webkitgtk-* from the nixpkgs hydra cache again. Perhaps the lix-module overlay is changing one of webkitgtk-*s dependencies?

System info:

$ nix run self#nix-info -- -m
 - system: `"x86_64-linux"`
 - host os: `Linux 6.11.1, NixOS, 24.11 (Vicuna), 24.11.20241103.4ae2e64`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Lix, like Nix) 2.91.1
System type: x86_64-linux
Additional system types: aarch64-linux, i686-linux, riscv64-linux, x86_64-windows
Features: gc, signed-caches
System configuration file: /etc/nix/nix.conf
User configuration files: /home/skykanin/.config/nix/nix.conf:/etc/xdg/nix/nix.conf:/home/skykanin/.local/share/flatpak/exports/etc/xdg/nix/nix.conf:/var/lib/flatpak/exports/etc/xdg/nix/nix.conf:/home/skykanin/.nix-profile/etc/xdg/nix/nix.conf:/nix/profile/etc/xdg/nix/nix.conf:/home/skykanin/.local/state/nix/profile/etc/xdg/nix/nix.conf:/etc/profiles/per-user/skykanin/etc/xdg/nix/nix.conf:/nix/var/nix/profiles/default/etc/xdg/nix/nix.conf:/run/current-system/sw/etc/xdg/nix/nix.conf
Store directory: /nix/store
State directory: /nix/var/nix
Data directory: /nix/store/k1iys4jifr01ql4bzafl6ny71qzw32wz-lix-2.91.1/share`
 - channels(skykanin): `""`
 - channels(root): `"nixos"`
 - nixpkgs: `/nix/store/lryfc8mhk1czqsa421di2y5nzz5c3b8m-source`
with the flake input config: ```nix inputs = { lix-module = { url = "git+https://git.lix.systems/lix-project/nixos-module"; inputs.nixpkgs.follows = "nixpkgs"; }; nixpkgs.url = "github:NixOS/nixpkgs?rev=4ae2e647537bcdbb82265469442713d066675275"; }; ``` using the `inputs.lix-module.nixosModules.default` module overlay forces a manual build of `webkitgtk-*` packages which is problematic as it requires an enormous amount of CPU time and RAM to build. Removing the module from my configuration solved this problem and fetched `webkitgtk-*` from the nixpkgs hydra cache again. Perhaps the `lix-module` overlay is changing one of `webkitgtk-*`s dependencies? System info: ```sh $ nix run self#nix-info -- -m - system: `"x86_64-linux"` - host os: `Linux 6.11.1, NixOS, 24.11 (Vicuna), 24.11.20241103.4ae2e64` - multi-user?: `yes` - sandbox: `yes` - version: `nix-env (Lix, like Nix) 2.91.1 System type: x86_64-linux Additional system types: aarch64-linux, i686-linux, riscv64-linux, x86_64-windows Features: gc, signed-caches System configuration file: /etc/nix/nix.conf User configuration files: /home/skykanin/.config/nix/nix.conf:/etc/xdg/nix/nix.conf:/home/skykanin/.local/share/flatpak/exports/etc/xdg/nix/nix.conf:/var/lib/flatpak/exports/etc/xdg/nix/nix.conf:/home/skykanin/.nix-profile/etc/xdg/nix/nix.conf:/nix/profile/etc/xdg/nix/nix.conf:/home/skykanin/.local/state/nix/profile/etc/xdg/nix/nix.conf:/etc/profiles/per-user/skykanin/etc/xdg/nix/nix.conf:/nix/var/nix/profiles/default/etc/xdg/nix/nix.conf:/run/current-system/sw/etc/xdg/nix/nix.conf Store directory: /nix/store State directory: /nix/var/nix Data directory: /nix/store/k1iys4jifr01ql4bzafl6ny71qzw32wz-lix-2.91.1/share` - channels(skykanin): `""` - channels(root): `"nixos"` - nixpkgs: `/nix/store/lryfc8mhk1czqsa421di2y5nzz5c3b8m-source` ```
skykanin changed title from Using lix-module with nixos-unstable branch causes rebuild of large packages to Using lix-module with nixos-unstable revision causes rebuild of large packages 2024-11-07 20:19:03 +00:00
Owner

that's a packaging bug in a webkitgtk dependency:

/nix/store/nzfcz8mqw3jk1l4ksvadpbazvs98nlsa-webkitgtk-2.46.3+abi=4.0.drv
└───/nix/store/x616m3921rr1mv1wijp545wainhjsb01-geoclue-2.7.2.drv
    └───/nix/store/rc1kgxbi17jngznbil4v9d9bpmcbm48y-nix-update-1.5.2.drv
        └───/nix/store/2jg6xln2hbcmynrfv0mr2s1cwchpfsz1-nix-2.24.10.drv
that's a packaging bug in a webkitgtk dependency: ``` /nix/store/nzfcz8mqw3jk1l4ksvadpbazvs98nlsa-webkitgtk-2.46.3+abi=4.0.drv └───/nix/store/x616m3921rr1mv1wijp545wainhjsb01-geoclue-2.7.2.drv └───/nix/store/rc1kgxbi17jngznbil4v9d9bpmcbm48y-nix-update-1.5.2.drv └───/nix/store/2jg6xln2hbcmynrfv0mr2s1cwchpfsz1-nix-2.24.10.drv ```
Author

For posterity here is my PR that fixes this bug in the geoclue2 package:

https://github.com/NixOS/nixpkgs/pull/354344

For posterity here is my PR that fixes this bug in the `geoclue2` package: https://github.com/NixOS/nixpkgs/pull/354344
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: lix-project/nixos-module#44
No description provided.