update flake inputs, remove oskars-dotfiles, patch spotify with spotx-bash
This commit is contained in:
parent
db447c785d
commit
f2bdc564db
10 changed files with 128 additions and 88 deletions
26
pkgs/spotifyx.nix
Normal file
26
pkgs/spotifyx.nix
Normal 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
|
||||
'';
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue