2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, spotify, xorg, runtimeShell }:
|
2019-08-13 21:52:01 +00:00
|
|
|
stdenv.mkDerivation {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "spotifywm-unstable";
|
2022-11-12 06:14:05 +00:00
|
|
|
version = "2022-10-26";
|
2018-08-28 00:25:10 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2022-11-12 06:14:05 +00:00
|
|
|
owner = "dasJ";
|
|
|
|
repo = "spotifywm";
|
|
|
|
rev = "8624f539549973c124ed18753881045968881745";
|
|
|
|
sha256 = "sha256-AsXqcoqUXUFxTG+G+31lm45gjP6qGohEnUSUtKypew0=";
|
2018-08-28 00:25:10 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ xorg.libX11 ];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ spotify ];
|
|
|
|
|
|
|
|
installPhase = ''
|
2019-02-26 11:45:54 +00:00
|
|
|
echo "#!${runtimeShell}" > spotifywm
|
2018-08-28 00:25:10 +00:00
|
|
|
echo "LD_PRELOAD="$out/lib/spotifywm.so" ${spotify}/bin/spotify \$*" >> spotifywm
|
|
|
|
install -Dm644 spotifywm.so $out/lib/spotifywm.so
|
|
|
|
install -Dm755 spotifywm $out/bin/spotifywm
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/dasJ/spotifywm";
|
2018-08-28 00:25:10 +00:00
|
|
|
description = "Wrapper around Spotify that correctly sets class name before opening the window";
|
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ jqueiroz ];
|
|
|
|
};
|
|
|
|
}
|