32 lines
553 B
Nix
32 lines
553 B
Nix
{
|
|
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
|
|
'';
|
|
});
|
|
in
|
|
symlinkJoin {
|
|
name = "spotifyx";
|
|
paths = [spotifyx];
|
|
}
|