cosmic-osd: substitue path for audio-volume-change.oga file (#397651)

This commit is contained in:
Gaétan Lepage
2025-04-10 14:25:19 +02:00
committed by GitHub
+6
View File
@@ -1,6 +1,7 @@
{
lib,
fetchFromGitHub,
sound-theme-freedesktop,
rustPlatform,
libcosmicAppHook,
pulseaudio,
@@ -20,6 +21,11 @@ rustPlatform.buildRustPackage (finalAttrs: {
hash = "sha256-ezOeRgqI/GOWFknUVZI7ZLEy1GYaBI+/An83HWKL6ho=";
};
postPatch = ''
substituteInPlace src/components/app.rs \
--replace-fail '/usr/share/sounds/freedesktop/stereo/audio-volume-change.oga' '${sound-theme-freedesktop}/share/sounds/freedesktop/stereo/audio-volume-change.oga'
'';
useFetchCargoVendor = true;
cargoHash = "sha256-vYehF2RjPrTZiuGcRUe4XX3ftRo7f+SIoKizD/kOtR8=";