2025-05-01 18:11:27 +08:00
|
|
|
{
|
2025-06-10 15:54:54 +08:00
|
|
|
spotify,
|
|
|
|
|
unzip,
|
|
|
|
|
zip,
|
|
|
|
|
perl,
|
2025-07-13 06:04:55 +08:00
|
|
|
makeWrapper,
|
2025-05-01 18:11:27 +08:00
|
|
|
srcs,
|
2025-07-13 06:04:55 +08:00
|
|
|
}:
|
|
|
|
|
let
|
2025-05-01 18:11:27 +08:00
|
|
|
inherit (srcs) spotx;
|
2025-05-25 23:28:27 +08:00
|
|
|
in
|
2025-07-13 06:04:55 +08:00
|
|
|
spotify.overrideAttrs (
|
|
|
|
|
_final: prev: {
|
|
|
|
|
nativeBuildInputs = prev.nativeBuildInputs ++ [
|
|
|
|
|
unzip
|
|
|
|
|
zip
|
|
|
|
|
perl
|
|
|
|
|
makeWrapper
|
|
|
|
|
];
|
|
|
|
|
spotx = spotx.src;
|
|
|
|
|
postUnpack = ''
|
|
|
|
|
cp $spotx/spotx.sh ./spotx.sh
|
|
|
|
|
chmod +x ./spotx.sh
|
|
|
|
|
patchShebangs --build ./spotx.sh
|
|
|
|
|
'';
|
|
|
|
|
postInstall = ''
|
|
|
|
|
./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'
|
|
|
|
|
'';
|
|
|
|
|
}
|
|
|
|
|
)
|