Merge pull request #47955 from jqueiroz/spotifywm

spotifywm-unstable: init at 2016-11-28
This commit is contained in:
Maximilian Bosch 2018-10-14 11:21:47 +02:00 committed by GitHub
commit 413ed9d116
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 33 additions and 0 deletions

View File

@ -0,0 +1,31 @@
{ stdenv, fetchFromGitHub, spotify, xorg }:
stdenv.mkDerivation rec {
name = "spotifywm-unstable-${version}";
version = "2016-11-28";
src = fetchFromGitHub {
owner = "dasJ";
repo = "spotifywm";
rev = "91dd5532ffb7a398d775abe94fe7781904ab406f";
sha256 = "01z088i83410bpx1vbp7c6cq01r431v55l7340x3izp53lnpp379";
};
buildInputs = [ xorg.libX11 ];
propagatedBuildInputs = [ spotify ];
installPhase = ''
echo "#!${stdenv.shell}" > spotifywm
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
'';
meta = with stdenv.lib; {
homepage = https://github.com/dasJ/spotifywm;
description = "Wrapper around Spotify that correctly sets class name before opening the window";
license = licenses.mit;
platforms = platforms.linux;
maintainers = with maintainers; [ jqueiroz ];
};
}

View File

@ -18882,6 +18882,8 @@ with pkgs;
apiKey = config.libspotify.apiKey or null;
};
spotifywm = callPackage ../applications/audio/spotifywm { };
squeezelite = callPackage ../applications/audio/squeezelite { };
ltunify = callPackage ../tools/misc/ltunify { };