fix: fix outdated workarounds

This commit is contained in:
matt1432 2024-03-12 19:44:05 -04:00
parent 0e2e586338
commit cc4ad85325
7 changed files with 20 additions and 138 deletions
common/overlays

View file

@ -1,6 +1,5 @@
{nixpkgs-wayland, ...} @ inputs: [
(import ./dracula-theme inputs)
(import ./spotifywm inputs)
(import ./squeekboard)
nixpkgs-wayland.overlay

View file

@ -1,3 +0,0 @@
{...} @ inputs: (final: prev: {
spotifywm = final.callPackage ./spotifywm.nix inputs;
})

View file

@ -1,54 +0,0 @@
# https://github.com/NixOS/nixpkgs/blob/77b27fdb6a9ba01f60b8f5c48038938cf14b7d2f/pkgs/applications/audio/spotifywm/default.nix
{
lib,
stdenv,
spotifywm-src,
libX11,
makeBinaryWrapper,
spotify,
symlinkJoin,
...
}: let
spotifywm = stdenv.mkDerivation {
pname = "spotifywm";
version = spotifywm-src.rev;
src = spotifywm-src;
buildInputs = [libX11];
installPhase = ''
runHook preInstall
install -Dm644 spotifywm.so $out/lib/spotifywm.so
runHook postInstall
'';
};
in
symlinkJoin {
inherit (spotifywm) name;
nativeBuildInputs = [makeBinaryWrapper];
paths = [
spotify
spotifywm
];
postBuild = ''
wrapProgram $out/bin/spotify \
--suffix LD_PRELOAD : "$out/lib/spotifywm.so"
ln -sf $out/bin/spotify $out/bin/spotifywm
'';
meta = {
homepage = "https://github.com/dasJ/spotifywm";
description = "Wrapper around Spotify that correctly sets class name before opening the window";
license = lib.licenses.mit;
platforms = lib.platforms.linux;
maintainers = with lib.maintainers; [jqueiroz the-argus];
mainProgram = "spotify";
};
}