feat: Use specitify instead of spotx
This commit is contained in:
parent
f812a13895
commit
b275b19421
11 changed files with 107 additions and 56 deletions
|
|
@ -1,36 +0,0 @@
|
|||
{
|
||||
spotify,
|
||||
unzip,
|
||||
zip,
|
||||
perl,
|
||||
makeWrapper,
|
||||
srcs,
|
||||
}: let
|
||||
inherit (srcs) spotx;
|
||||
in
|
||||
spotify.overrideAttrs (
|
||||
_final: prev: {
|
||||
nativeBuildInputs =
|
||||
prev.nativeBuildInputs
|
||||
++ [
|
||||
unzip
|
||||
zip
|
||||
perl
|
||||
makeWrapper
|
||||
];
|
||||
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 -p
|
||||
'';
|
||||
postFixup = ''
|
||||
wrapProgram $out/bin/spotify \
|
||||
--set NIXOS_OZONE_WL 1 \
|
||||
--add-flags '--wayland-text-input-version=3'
|
||||
'';
|
||||
}
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue