pkg: Enable wayland for spotify

This commit is contained in:
ulic-youthlic 2025-07-13 06:04:55 +08:00
parent dd700c0c4c
commit c48460eb3a
Signed by: youthlic
GPG key ID: 63E86C3C14A0D721

View file

@ -3,17 +3,19 @@
unzip, unzip,
zip, zip,
perl, perl,
symlinkJoin, makeWrapper,
srcs, srcs,
}: }:
let let
inherit (srcs) spotx; inherit (srcs) spotx;
spotifyx = spotify.overrideAttrs ( in
spotify.overrideAttrs (
_final: prev: { _final: prev: {
nativeBuildInputs = prev.nativeBuildInputs ++ [ nativeBuildInputs = prev.nativeBuildInputs ++ [
unzip unzip
zip zip
perl perl
makeWrapper
]; ];
spotx = spotx.src; spotx = spotx.src;
postUnpack = '' postUnpack = ''
@ -22,12 +24,12 @@ let
patchShebangs --build ./spotx.sh patchShebangs --build ./spotx.sh
''; '';
postInstall = '' postInstall = ''
./spotx.sh -P $out/share/spotify -h ./spotx.sh -P $out/share/spotify -h -p
'';
postFixup = ''
wrapProgram $out/bin/spotify \
--set NIXOS_OZONE_WL 1 \
--add-flags '--wayland-text-input-version=3'
''; '';
} }
); )
in
symlinkJoin {
name = "spotifyx";
paths = [ spotifyx ];
}