···10 libgbm,
11 pipewire,
12 gst_all_1,
013 coreutils,
14 nix-update-script,
15 nixosTests,
···59 })
60 ];
6162- # Also modifies the functionality by replacing 'false' with 'true' to enable the portal to start properly.
63 postPatch = ''
00000000000000064 substituteInPlace data/org.freedesktop.impl.portal.desktop.cosmic.service \
65 --replace-fail 'Exec=/bin/false' 'Exec=${lib.getExe' coreutils "true"}'
66 '';
···10 libgbm,
11 pipewire,
12 gst_all_1,
13+ cosmic-wallpapers,
14 coreutils,
15 nix-update-script,
16 nixosTests,
···60 })
61 ];
62063 postPatch = ''
64+ # While the `kate-hazen-COSMIC-desktop-wallpaper.png` image is present
65+ # in the `pop-wallpapers` package, we're using the Orion Nebula image
66+ # from NASA available in the `cosmic-wallpapers` package. Mainly because
67+ # the previous image was used in the GNOME shell extension and the
68+ # Orion Nebula image is widely used in the Rust-based COSMIC DE's
69+ # marketing materials. Another reason to use the Orion Nebula image
70+ # is that it's actually the default wallpaper as configured by the
71+ # `cosmic-bg` package's configuration in upstream [1] [2].
72+ #
73+ # [1]: https://github.com/pop-os/cosmic-bg/blob/epoch-1.0.0-alpha.6/config/src/lib.rs#L142
74+ # [2]: https://github.com/pop-os/cosmic-bg/blob/epoch-1.0.0-alpha.6/data/v1/all#L3
75+ substituteInPlace src/screenshot.rs src/widget/screenshot.rs \
76+ --replace-fail '/usr/share/backgrounds/pop/kate-hazen-COSMIC-desktop-wallpaper.png' '${cosmic-wallpapers}/share/backgrounds/cosmic/orion_nebula_nasa_heic0601a.jpg'
77+78+ # Also modifies the functionality by replacing 'false' with 'true' to enable the portal to start properly.
79 substituteInPlace data/org.freedesktop.impl.portal.desktop.cosmic.service \
80 --replace-fail 'Exec=/bin/false' 'Exec=${lib.getExe' coreutils "true"}'
81 '';