2025-05-01 18:11:27 +08:00
|
|
|
{
|
2025-06-10 15:54:54 +08:00
|
|
|
spotify,
|
|
|
|
|
unzip,
|
|
|
|
|
zip,
|
|
|
|
|
perl,
|
|
|
|
|
symlinkJoin,
|
2025-05-01 18:11:27 +08:00
|
|
|
srcs,
|
|
|
|
|
}: let
|
|
|
|
|
inherit (srcs) spotx;
|
2025-06-24 21:42:12 +08:00
|
|
|
spotifyx = spotify.overrideAttrs (_final: prev: {
|
2025-05-01 18:11:27 +08:00
|
|
|
nativeBuildInputs =
|
|
|
|
|
prev.nativeBuildInputs
|
2025-06-10 15:54:54 +08:00
|
|
|
++ [
|
2025-05-01 18:11:27 +08:00
|
|
|
unzip
|
|
|
|
|
zip
|
|
|
|
|
perl
|
2025-06-10 15:54:54 +08:00
|
|
|
];
|
2025-05-01 18:11:27 +08:00
|
|
|
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
|
|
|
|
|
'';
|
2025-05-25 23:28:27 +08:00
|
|
|
});
|
|
|
|
|
in
|
2025-06-10 15:54:54 +08:00
|
|
|
symlinkJoin {
|
2025-05-25 23:28:27 +08:00
|
|
|
name = "spotifyx";
|
|
|
|
|
paths = [spotifyx];
|
|
|
|
|
}
|