mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-16 06:47:09 +03:00
* Spotify for Linux (preview version). It works, but not yet out of
the box because it requires /usr/share/spotify to point at its resources. So to get it to work, you should do something like: $ nix-env -i spotify $ mkdir -p /usr/share $ ln -s /home/eelco/.nix-profile/share/spotify /usr/share/ Also note that the Linux client doesn't work with free Spotify accounts (as noted on https://www.spotify.com/nl/download/previews/). svn path=/nixpkgs/trunk/; revision=25431
This commit is contained in:
parent
5488651792
commit
f81bc24790
38
pkgs/applications/audio/spotify/default.nix
Normal file
38
pkgs/applications/audio/spotify/default.nix
Normal file
@ -0,0 +1,38 @@
|
||||
{ fetchurl, stdenv, dpkg, xlibs, qt4, alsaLib }:
|
||||
|
||||
assert stdenv.system == "x86_64-linux";
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "spotify-0.4.9.302";
|
||||
|
||||
src = fetchurl {
|
||||
url = http://repository.spotify.com/pool/non-free/s/spotify/spotify-client-qt_0.4.9.302.g604b4fb-1_amd64.deb;
|
||||
sha256 = "1cghs3hwmqnd7g62g1h2bf3yvxgjq8b94vzhp1w9ysb5rswyjkyv";
|
||||
};
|
||||
|
||||
buildInputs = [ dpkg ];
|
||||
|
||||
unpackPhase = "true";
|
||||
|
||||
installPhase =
|
||||
''
|
||||
mkdir -p $out
|
||||
dpkg-deb -x $src $out
|
||||
mv $out/usr/* $out/
|
||||
rmdir $out/usr
|
||||
|
||||
patchelf \
|
||||
--interpreter "$(cat $NIX_GCC/nix-support/dynamic-linker)" \
|
||||
--set-rpath ${stdenv.lib.makeLibraryPath [ xlibs.libXScrnSaver qt4 alsaLib stdenv.gcc.gcc ]}:${stdenv.gcc.gcc}/lib64 \
|
||||
$out/bin/spotify
|
||||
''; # */
|
||||
|
||||
dontStrip = true;
|
||||
dontPatchELF = true;
|
||||
|
||||
meta = {
|
||||
homepage = https://www.spotify.com/download/previews/;
|
||||
description = "Spotify for Linux allows you to play music from the Spotify music service";
|
||||
license = "unfree";
|
||||
};
|
||||
}
|
@ -6484,6 +6484,8 @@ let
|
||||
|
||||
sox = callPackage ../applications/misc/audio/sox { };
|
||||
|
||||
spotify = callPackage ../applications/audio/spotify { };
|
||||
|
||||
stalonetray = callPackage ../applications/window-managers/stalonetray {};
|
||||
|
||||
stumpwm = builderDefsPackage (import ../applications/window-managers/stumpwm) {
|
||||
|
Loading…
Reference in New Issue
Block a user