Skip to content

Commit 3b14d12

Browse files
authored
cosmic-osd: substitue path for audio-volume-change.oga file (NixOS#397651)
2 parents 23645ad + c14ed78 commit 3b14d12

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

pkgs/by-name/co/cosmic-osd/package.nix

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
lib,
33
fetchFromGitHub,
4+
sound-theme-freedesktop,
45
rustPlatform,
56
libcosmicAppHook,
67
pulseaudio,
@@ -20,6 +21,11 @@ rustPlatform.buildRustPackage (finalAttrs: {
2021
hash = "sha256-ezOeRgqI/GOWFknUVZI7ZLEy1GYaBI+/An83HWKL6ho=";
2122
};
2223

24+
postPatch = ''
25+
substituteInPlace src/components/app.rs \
26+
--replace-fail '/usr/share/sounds/freedesktop/stereo/audio-volume-change.oga' '${sound-theme-freedesktop}/share/sounds/freedesktop/stereo/audio-volume-change.oga'
27+
'';
28+
2329
useFetchCargoVendor = true;
2430
cargoHash = "sha256-vYehF2RjPrTZiuGcRUe4XX3ftRo7f+SIoKizD/kOtR8=";
2531

0 commit comments

Comments
 (0)