anchor.diff:          url    = "https://developer.spotify.com/download/libspotify/libspotify-${version}-Darwin-universal.zip";
           sha256 = "1gcgrc8arim3hnszcc886lmcdb4iigc08abkaa02l6gng43ky1c0";
         }
  +    else if stdenv.system == "i686-linux" then
  +      fetchurl {
  +        url    = "https://developer.spotify.com/download/libspotify/libspotify-${version}-Linux-i686-release.tar.gz";
  +        sha256 = "1bjmn64gbr4p9irq426yap4ipq9rb84zsyhjjr7frmmw22xb86ll";
  +      }
       else
         null;
   
  
positive.code:   buildInputs = stdenv.lib.optional (stdenv.system == "x86_64-darwin") unzip;
  
    # linux-specific
    installFlags = stdenv.lib.optionalString (stdenv.system == "x86_64-linux")
      "prefix=$(out)";
    patchPhase = stdenv.lib.optionalString (stdenv.system == "x86_64-linux")
      "${gnused}/bin/sed -i 's/ldconfig//' Makefile";
    postInstall = stdenv.lib.optionalString (stdenv.system == "x86_64-linux")
      "mv -v share $out";
  
    passthru = {
  
negative.code: { stdenv, fetchurl, libspotify, alsaLib, readline, pkgconfig, apiKey, unzip, gnused }:
  
  let 
    version = "12.1.51"; 
    isLinux = (stdenv.system == "x86_64-linux" || stdenv.system == "i686-linux");
  in
  
  if (stdenv.system != "x86_64-linux" && stdenv.system != "x86_64-darwin" && stdenv.system != "i686-linux")
  then throw "Check https://developer.spotify.com/technologies/libspotify/ for a tarball for your system and add it here"
  else stdenv.mkDerivation {
    name = "libspotify-${version}";
  