update flake inputs, remove oskars-dotfiles, patch spotify with spotx-bash

This commit is contained in:
ulic-youthlic 2025-05-01 18:11:27 +08:00
parent db447c785d
commit f2bdc564db
Signed by: youthlic
GPG key ID: 63E86C3C14A0D721
10 changed files with 128 additions and 88 deletions

26
pkgs/spotifyx.nix Normal file
View file

@ -0,0 +1,26 @@
{
pkgs,
srcs,
...
}: let
inherit (srcs) spotx;
in
pkgs.spotify.overrideAttrs (final: prev: {
version = prev.version + "_spotx-${spotx.version}";
nativeBuildInputs =
prev.nativeBuildInputs
++ (with pkgs; [
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
'';
})