cosmic-bg: add upstream patch to lookup wallpapers in $XDG_DATA_DIRS

Usually, I prefer waiting for a release from upstream that includes the
commit but there appears that the next release is a few months away. So
add the patch for the time being.

Once we have a new release, the patch won't apply cleanly and we can
remove it then.
This commit is contained in:
Pratham Patel
2025-04-13 15:38:01 +05:30
parent 1e688997ce
commit 4a116543a3
+9
View File
@@ -3,6 +3,7 @@
stdenv,
fetchFromGitHub,
rustPlatform,
fetchpatch,
cosmic-wallpapers,
libcosmicAppHook,
just,
@@ -22,6 +23,14 @@ rustPlatform.buildRustPackage (finalAttrs: {
hash = "sha256-4b4laUXTnAbdngLVh8/dD144m9QrGReSEjRZoNR6Iks=";
};
patches = [
# TOOD: This is merged and will be included in the 7th Alpha release, remove it then.
(fetchpatch {
url = "https://github.com/pop-os/cosmic-bg/commit/6a824a7902d7cc72b5a3117b6486603a1795a1d6.patch";
hash = "sha256-jL0az87BlJU99lDF3jnE74I4m/NV6NViyYXTfZoBDM4=";
})
];
postPatch = ''
substituteInPlace config/src/lib.rs data/v1/all \
--replace-fail '/usr/share/backgrounds/cosmic/orion_nebula_nasa_heic0601a.jpg' \