Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

[spotify] spotify-client_0.8.3.278.g21c7566.632-1_amd64.deb not found #83

Closed
j4 opened this Issue · 2 comments

2 participants

@j4
j4 commented

The repository of spotify no longer contains the version requested by the package.

[ja@spof:~/src/nixpkgs/pkgs]$ nix-env -i spotify
installing `spotify-0.8.3.278'
these derivations will be built:
  /nix/store/g7qps7pb2l2w8wrsavsxfpi42is1yrp1-spotify-0.8.3.278.drv
  /nix/store/nx7b4i9h1z6dkfcjxm1ay7ga0gf1zpfy-spotify-client_0.8.3.278.g21c7566.632-1_amd64.deb.drv
building path(s) `/nix/store/92wsz0giz7i94a9pa79bfyd0jz25l9y3-spotify-client_0.8.3.278.g21c7566.632-1_amd64.deb'

trying http://repository.spotify.com/pool/non-free/s/spotify/spotify-client_0.8.3.278.g21c7566.632-1_amd64.deb
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
curl: (22) The requested URL returned error: 404
error: cannot download spotify-client_0.8.3.278.g21c7566.632-1_amd64.deb from any mirror
builder for `/nix/store/nx7b4i9h1z6dkfcjxm1ay7ga0gf1zpfy-spotify-client_0.8.3.278.g21c7566.632-1_amd64.deb.drv' failed with exit code 1
cannot build derivation `/nix/store/g7qps7pb2l2w8wrsavsxfpi42is1yrp1-spotify-0.8.3.278.drv': 1 dependencies couldn't be built
error: build of `/nix/store/g7qps7pb2l2w8wrsavsxfpi42is1yrp1-spotify-0.8.3.278.drv' failed```
@j4
j4 commented

I just try to change the version but I get an error with the libgthread.

ja@spof:~/src/nixpkgs/pkgs/applications/audio/spotify$ ./result/bin/spotify 
/nix/store/qlds76m24fkixs3q1q0yl9m0w5aibpb9-spotify-0.8.4.103/bin/.spotify-wrapped: error while loading shared libraries: libgthread-2.0.so.0: cannot open shared object file: No such file or directory

patch :

*** default.nix.old 2012-08-05 17:45:22.915003686 +0200
--- default.nix 2012-08-05 17:48:18.281970907 +0200
***************
*** 2,8 ****

  assert stdenv.system == "i686-linux" || stdenv.system == "x86_64-linux";

! let version = "0.8.3.278"; in

  stdenv.mkDerivation {
    name = "spotify-${version}";
--- 2,8 ----

  assert stdenv.system == "i686-linux" || stdenv.system == "x86_64-linux";

! let version = "0.8.4.103"; in

  stdenv.mkDerivation {
    name = "spotify-${version}";
***************
*** 10,22 ****
    src =
      if stdenv.system == "i686-linux" then
        fetchurl {
!         url = "http://repository.spotify.com/pool/non-free/s/spotify/spotify-client_${version}.g21c7566.632-1_i386.deb";
!         sha256 = "7f587585365498c5182bd7f3beafaf511d883102f5cece66cf84f4f94077765b";
        }
      else if stdenv.system == "x86_64-linux" then
        fetchurl {
!         url = "http://repository.spotify.com/pool/non-free/s/spotify/spotify-client_${version}.g21c7566.632-1_amd64.deb";
!         sha256 = "a37a13b1c1a8088a811054c732d85b9d6ccf0bd92ad4da75bfee6d70dc344b5e";
        }
      else throw "Spotify not supported on this platform.";

--- 10,22 ----
    src =
      if stdenv.system == "i686-linux" then
        fetchurl {
!         url = "http://repository.spotify.com/pool/non-free/s/spotify/spotify-client_${version}.g9cb177b.260-1_i386.deb";
!         sha256 = "61502995da6b126eb6801bf92a8463a7fdd37dc6be0e0aba3560bdadde3531c7";
        }
      else if stdenv.system == "x86_64-linux" then
        fetchurl {
!         url = "http://repository.spotify.com/pool/non-free/s/spotify/spotify-client_${version}.g9cb177b.260-1_amd64.deb";
!         sha256 = "d350defa4164aaf129985df7e3ca33fc3f88aad2fac1637e6a26cc1794f3b378";
        }
      else throw "Spotify not supported on this platform.";
@Phreedom
Collaborator

This is obsolete. Spotify is working now.

@Phreedom Phreedom closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.