pkg: Enable wayland for spotify
This commit is contained in:
parent
dd700c0c4c
commit
c48460eb3a
1 changed files with 25 additions and 23 deletions
|
|
@ -3,31 +3,33 @@
|
|||
unzip,
|
||||
zip,
|
||||
perl,
|
||||
symlinkJoin,
|
||||
makeWrapper,
|
||||
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 ];
|
||||
}
|
||||
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