nixpkgs icon indicating copy to clipboard operation
nixpkgs copied to clipboard

Bug: gnome-shell 49.1 fails to build due to broken patch (shell_remove_dark_mode.patch)

Open MaximilianCF opened this issue 1 year ago • 1 comments

Nixpkgs version

  • Unstable (25.11)

Describe the bug

gnome-shell-49.1 fails during patchPhase because the downstream patch shell_remove_dark_mode.patch no longer applies cleanly. Upstream GNOME 49.1 changed the affected sections of js/ui/panel.js, causing all hunks to fail.

Build log excerpt

applying patch /nix/store/...-shell_remove_dark_mode.patch
patching file js/ui/panel.js
Hunk #1 FAILED at 30.
Hunk #2 FAILED at 546.
Hunk #3 FAILED at 567.
Hunk #4 FAILED at 599.
4 out of 4 hunks FAILED -- saving rejects to file js/ui/panel.js.rej

Steps to reproduce

sudo nixos-rebuild switch --flake .

Expected behaviour

Build should succeed or the patch should be removed/updated for GNOME 49.1.

Screenshots

Image

Relevant log output

error: Cannot build '/nix/store/6v00dc9khg8f07san0cj3dczq5r38wak-gnome-shell-49.1.drv'.
       Reason: builder failed with exit code 1.
       Output paths:
         /nix/store/5yvrxidc0nf4yf7sqplp6jf7bficalw6-gnome-shell-49.1
         /nix/store/syzsmz461k2dw0r155r57lg5f8hm4p3l-gnome-shell-49.1-devdoc
         /nix/store/zr7laz8cn23vw4j26c7xsr6j9da5n90p-gnome-shell-49.1-debug
       Last 25 log lines:
       > patching file subprojects/extensions-tool/src/command-install.c
       > applying patch /nix/store/4k1bj639pijx4bhavmwjay9yisv9zbd4-shew-gir-path.patch
       > patching file subprojects/libshew/src/meson.build
       > Hunk #1 succeeded at 16 (offset 3 lines).
       > applying patch /nix/store/ywlajd02glm62sjbs3mb4ld06lbgpbkj-wrap-services.patch
       > patching file js/dbusServices/dbus-service.in
       > patching file js/dbusServices/dbus-service.service.in
       > patching file js/dbusServices/meson.build
       > Hunk #2 succeeded at 14 (offset -5 lines).
       > applying patch /nix/store/n48xj8c1dgak2g7chkjsibi4cmprdw0p-greeter-logo-size.patch
       > patching file js/gdm/loginDialog.js
       > Hunk #1 succeeded at 47 with fuzz 2 (offset 1 line).
       > Hunk #2 succeeded at 1021 (offset 112 lines).
       > applying patch /nix/store/fsxdkg08hx6h95snvfh6j7b5w5k427x0-0001-gdm-Work-around-failing-fingerprint-auth.patch
       > patching file js/gdm/util.js
       > Hunk #2 succeeded at 671 (offset 1 line).
       > Hunk #3 succeeded at 769 (offset 1 line).
       > Hunk #4 succeeded at 843 (offset 8 lines).
       > applying patch /nix/store/a5g47x27ixb2nc4zr94x2sbl0fd8cysl-shell_remove_dark_mode.patch
       > patching file js/ui/panel.js
       > Hunk #1 FAILED at 30.
       > Hunk #2 FAILED at 546.
       > Hunk #3 FAILED at 567.
       > Hunk #4 FAILED at 599.
       > 4 out of 4 hunks FAILED -- saving rejects to file js/ui/panel.js.rej
       For full logs, run:
         nix log /nix/store/6v00dc9khg8f07san0cj3dczq5r38wak-gnome-shell-49.1.drv
error: Cannot build '/nix/store/j7aan2y0xy8p2vdykk16w2wqq42k7csr-gnome-browser-connector-42.1.drv'.
       Reason: 1 dependency failed.
       Output paths:
         /nix/store/6x10jvwgivq3f7gyqmhd0hwnp3cas91a-gnome-browser-connector-42.1
error: Cannot build '/nix/store/c49j4xmqf5ivr2xzkkhhap9bd5x91yzh-gnome-gsettings-overrides.drv'.
       Reason: 1 dependency failed.
       Output paths:
         /nix/store/dwksfbaava54qgi54r0h2fxc82h5hgkg-gnome-gsettings-overrides
error: Cannot build '/nix/store/z5i4a66anjzdsa3bxkrxlaarx2p4ggr4-gnome-session-49.1.drv'.
       Reason: 1 dependency failed.
       Output paths:
         /nix/store/30kh66idwnl1gx1js0f0vy6qiwkbn56l-gnome-session-49.1
         /nix/store/ibm6spp9g6fj9z6p0v3lhk0by8400cja-gnome-session-49.1-sessions
         /nix/store/r7s1qbib6il79svm7x77zgdpx7625g0r-gnome-session-49.1-debug
error: Cannot build '/nix/store/dxl08hcna92mlad6zbyv3am19vgrsp0s-gnome-tweaks-49.0.drv'.
       Reason: 1 dependency failed.
       Output paths:
         /nix/store/ndwf7a5fbvkahc6lwa2g2di9a2qiq899-gnome-tweaks-49.0
error: Cannot build '/nix/store/dym1lj49qnxsxzxkr156m4h73vv69vjp-set-environment.drv'.
       Reason: 1 dependency failed.
       Output paths:
         /nix/store/94wim6chy8qdzfsx249y63889xf4ss49-set-environment
error: Cannot build '/nix/store/gg447dcpkk0fyhz8lch9rj6rrx6f6rbi-system-path.drv'.
       Reason: 1 dependency failed.
       Output paths:
         /nix/store/apm651qjpcwrh4qvmr08sir3xhx3f0yw-system-path
error: Cannot build '/nix/store/2aslpj85g7lzzib9yv4l9bf1lcal3g25-nixos-system-Endurance-25.11.20251112.c5ae371.drv'.
       Reason: 1 dependency failed.
       Output paths:
         /nix/store/7ha0hqn7hiy95p8av1chwsapjdr2f1s5-nixos-system-Endurance-25.11.20251112.c5ae371

Additional context

No response

System metadata

 - system: `"x86_64-linux"`
 - host os: `Linux 6.17.7-xanmod1, NixOS, 25.11 (Xantusia), 25.11.20251111.9da7f1c`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.31.2`
 - channels(root): `"nixos-25.05, nixpkgs-unstable"`
 - nixpkgs: `/nix/store/cjjpqrp9xy44j5fjh3mygyxy3i7mslj2-source`

Notify maintainers


Note for maintainers: Please tag this issue in your pull request description. (i.e. Resolves #ISSUE.)

I assert that this issue is relevant for Nixpkgs

Is this issue important to you?

Add a :+1: reaction to issues you find important.

MaximilianCF avatar Nov 14 '25 12:11 MaximilianCF

This patch is actually in nix-community/stylix ; not nixpkgs: https://github.com/nix-community/stylix/blob/647bb8dd96a206a1b79c4fd714affc88b409e10b/modules/gnome/nixos.nix#L50

sini avatar Nov 14 '25 22:11 sini