chore: update flake.lock
This commit is contained in:
parent
1163a21e61
commit
fefa3b3ef6
2 changed files with 23 additions and 0 deletions
23
common/overlays/spotifywm.nix
Normal file
23
common/overlays/spotifywm.nix
Normal file
|
@ -0,0 +1,23 @@
|
|||
final: prev: {
|
||||
spotifywm = prev.spotifywm.overrideAttrs (oldAttrs: rec {
|
||||
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
mkdir -p $out/{bin,lib,share}
|
||||
install -Dm644 spotifywm.so $out/lib/
|
||||
ln -sf ${prev.spotify}/bin/spotify $out/bin/spotify
|
||||
ln -sf ${prev.spotify}/share/applications/ $out/share/applications
|
||||
ln -sf ${prev.spotify}/share/icons $out/share/icons
|
||||
|
||||
# wrap spotify to use spotifywm.so
|
||||
wrapProgram $out/bin/spotify --set LD_PRELOAD "$out/lib/spotifywm.so"
|
||||
# backwards compatibility for people who are using the "spotifywm" binary
|
||||
ln -sf $out/bin/spotify $out/bin/spotifywm
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
});
|
||||
}
|
||||
|
BIN
flake.lock
BIN
flake.lock
Binary file not shown.
Loading…
Reference in a new issue