nixos/pkgs/spotifyx.nix

33 lines
554 B
Nix
Raw Normal View History

{
spotify,
unzip,
zip,
perl,
symlinkJoin,
srcs,
}: let
inherit (srcs) spotx;
spotifyx = spotify.overrideAttrs (_final: prev: {
nativeBuildInputs =
prev.nativeBuildInputs
++ [
unzip
zip
perl
];
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
symlinkJoin {
2025-05-25 23:28:27 +08:00
name = "spotifyx";
paths = [spotifyx];
}