From e6064cfce1df1a34e39097a0aa22fb62f8096839 Mon Sep 17 00:00:00 2001 From: Pratham Patel Date: Mon, 14 Apr 2025 08:37:20 +0530 Subject: [PATCH] cosmic-settings: add upstream patch looking up wallpaper in NixOS-specific path 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. --- pkgs/by-name/co/cosmic-settings/package.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pkgs/by-name/co/cosmic-settings/package.nix b/pkgs/by-name/co/cosmic-settings/package.nix index 5174eaa5a661..c37320999138 100644 --- a/pkgs/by-name/co/cosmic-settings/package.nix +++ b/pkgs/by-name/co/cosmic-settings/package.nix @@ -2,6 +2,7 @@ lib, stdenv, fetchFromGitHub, + fetchpatch, rustPlatform, cmake, just, @@ -36,6 +37,14 @@ rustPlatform.buildRustPackage (finalAttrs: { hash = "sha256-UKg3TIpyaqtynk6wLFFPpv69F74hmqfMVPra2+iFbvE="; }; + patches = [ + # TODO: This is merged and will be included in the 7th Alpha release, remove it then. + (fetchpatch { + url = "https://github.com/pop-os/cosmic-settings/commit/2e2898b31fabcb3f3b561e6c4cea2aca9de9b284.patch"; + hash = "sha256-ZGJlGmR6lZB697uQ+ZsjvisNbPKBlBdRK/Ti541ZdlE="; + }) + ]; + useFetchCargoVendor = true; cargoHash = "sha256-mf/Cw3/RLrCYgsk7JKCU2+oPn1VPbD+4JzkUmbd47m8=";