anchor.diff:        # Work around Spotify referring to a specific minor version of
         # OpenSSL.
   
  -      ln -s ${nss}/lib/libnss3.so $libdir/libnss3.so.1d
  -      ln -s ${nss}/lib/libnssutil3.so $libdir/libnssutil3.so.1d
  -      ln -s ${nss}/lib/libsmime3.so $libdir/libsmime3.so.1d
  -
  -      ${if stdenv.system == "x86_64-linux" then ''
         ln -s ${openssl}/lib/libssl.so $libdir/libssl.so.1.0.0
         ln -s ${openssl}/lib/libcrypto.so $libdir/libcrypto.so.1.0.0
         ln -s ${nspr}/lib/libnspr4.so $libdir/libnspr4.so
         ln -s ${nspr}/lib/libplc4.so $libdir/libplc4.so
  -      '' else ''
  -      ln -s ${openssl}/lib/libssl.so $libdir/libssl.so.0.9.8
  -      ln -s ${openssl}/lib/libcrypto.so $libdir/libcrypto.so.0.9.8
  -      ln -s ${nspr}/lib/libnspr4.so $libdir/libnspr4.so.0d
  -      ln -s ${nspr}/lib/libplc4.so $libdir/libplc4.so.0d
  -      ''}
  -
  -      # Work around Spotify trying to open libudev.so.1 (which we don't have)
  -      ln -s ${udev}/lib/libudev.so.1 $libdir/libudev.so.1
   
         mkdir -p $out/bin
   
  
positive.code: , libgcrypt, chromium, udev, fontconfig
  , dbus, expat }:
  
  assert stdenv.system == "i686-linux" || stdenv.system == "x86_64-linux";
  
  let
    version = if stdenv.system == "i686-linux"
      then "0.9.4.183.g644e24e.428"
      else "0.9.17.1.g9b85d43.7";
  
    deps = [
      alsaLib
  
negative.code:   name = "spotify-${version}";
  
    src =
      fetchurl {
        url = "http://repository.spotify.com/pool/non-free/s/spotify/spotify-client_${version}-1_amd64.deb";
        sha256 = "0x87q7gd2997sgppsm4lmdiz1cm11x5vnd5c34nqb5d4ry5qfyki";
      };
  
    buildInputs = [ dpkg makeWrapper ];
  
  