summary refs log tree commit diff
path: root/pkgs/applications/audio/spotify
diff options
context:
space:
mode:
authorPeter Hoeg <peter@hoeg.com>2017-04-16 13:52:23 +0800
committerPeter Hoeg <peter@hoeg.com>2017-04-16 13:54:43 +0800
commit58db2099b4daf5c0d96913f639307e9494fc504b (patch)
tree3aa702df5d71865e628147f3d552c8b38af4da3f /pkgs/applications/audio/spotify
parentfe7fc0b2aec9d56de6187e760daf97e50cd6ecb5 (diff)
downloadnixpkgs-58db2099b4daf5c0d96913f639307e9494fc504b.tar
nixpkgs-58db2099b4daf5c0d96913f639307e9494fc504b.tar.gz
nixpkgs-58db2099b4daf5c0d96913f639307e9494fc504b.tar.bz2
nixpkgs-58db2099b4daf5c0d96913f639307e9494fc504b.tar.lz
nixpkgs-58db2099b4daf5c0d96913f639307e9494fc504b.tar.xz
nixpkgs-58db2099b4daf5c0d96913f639307e9494fc504b.tar.zst
nixpkgs-58db2099b4daf5c0d96913f639307e9494fc504b.zip
spotify: 1.0.52.717 -> 1.0.53.758
Additionally:

 - some minor cleanups
 - define meta.platforms so hydra doesn't try to evaluate at all on i686 instead
   of waiting for "assert" to fail.

As spotify is distributing a i686 version, there really is no reason not to
support that. Someone just has to add support for it.
Diffstat (limited to 'pkgs/applications/audio/spotify')
-rw-r--r--pkgs/applications/audio/spotify/default.nix29
1 files changed, 14 insertions, 15 deletions
diff --git a/pkgs/applications/audio/spotify/default.nix b/pkgs/applications/audio/spotify/default.nix
index 1d1d0d6a6f0..765f0e9e5a7 100644
--- a/pkgs/applications/audio/spotify/default.nix
+++ b/pkgs/applications/audio/spotify/default.nix
@@ -8,7 +8,7 @@ let
   # Please update the stable branch!
   # Latest version number can be found at:
   # http://repository-origin.spotify.com/pool/non-free/s/spotify-client/
-  version = "1.0.52.717.g2f08534a-47";
+  version = "1.0.53.758.gde3fc4b2-33";
 
   deps = [
     alsaLib
@@ -51,23 +51,24 @@ in
 stdenv.mkDerivation {
   name = "spotify-${version}";
 
-  src =
-    fetchurl {
-      url = "https://repository-origin.spotify.com/pool/non-free/s/spotify-client/spotify-client_${version}_amd64.deb";
-      sha256 = "1xqd4pjb69zmbac5fq3pckgr4khlkzfkx8b029qzjc2hi52zfnj7";
-    };
+  src = fetchurl {
+    url = "https://repository-origin.spotify.com/pool/non-free/s/spotify-client/spotify-client_${version}_amd64.deb";
+    sha256 = "1sh6bv23yx0fcbmf60c2yyi6411ij85k4jalpjlck2w26nfj1b3g";
+  };
 
   buildInputs = [ dpkg makeWrapper ];
 
+  doConfigure = false;
+  doBuild = false;
+  dontStrip = true;
+  dontPatchELF = true;
+
   unpackPhase = ''
     runHook preUnpack
     dpkg-deb -x $src .
     runHook postUnpack
   '';
 
-  configurePhase = "runHook preConfigure; runHook postConfigure";
-  buildPhase = "runHook preBuild; runHook postBuild";
-
   installPhase =
     ''
       runHook preInstall
@@ -110,13 +111,11 @@ stdenv.mkDerivation {
       runHook postInstall
     '';
 
-  dontStrip = true;
-  dontPatchELF = true;
-
-  meta = {
+  meta = with stdenv.lib; {
     homepage = https://www.spotify.com/;
     description = "Play music from the Spotify music service";
-    license = stdenv.lib.licenses.unfree;
-    maintainers = with stdenv.lib.maintainers; [ eelco ftrvxmtrx sheenobu mudri ];
+    license = licenses.unfree;
+    maintainers = with maintainers; [ eelco ftrvxmtrx sheenobu mudri ];
+    platforms = [ "x86_64-linux" ];
   };
 }