nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge pull request #175369 from dotlambda/libspotify-drop

libspotify: remove

authored by

Ben Siraphob and committed by
GitHub
fd523bfe 66c7d3ca

+27 -282
-13
pkgs/applications/audio/clementine/clementine-spotify-blob.patch
··· 1 - diff --git a/src/internet/spotify/spotifyservice.cpp b/src/internet/spotify/spotifyservice.cpp 2 - index 88c7383..6e0893c 100644 3 - --- a/src/internet/spotify/spotifyservice.cpp 4 - +++ b/src/internet/spotify/spotifyservice.cpp 5 - @@ -94,7 +94,7 @@ SpotifyService::SpotifyService(Application* app, InternetModel* parent) 6 - system_blob_path_ = QCoreApplication::applicationDirPath() + 7 - "/../PlugIns/clementine-spotifyblob"; 8 - #else 9 - - system_blob_path_ = QCoreApplication::applicationDirPath() + 10 - + system_blob_path_ = qgetenv("CLEMENTINE_SPOTIFYBLOB") + 11 - "/clementine-spotifyblob" CMAKE_EXECUTABLE_SUFFIX; 12 - #endif 13 -
+22 -73
pkgs/applications/audio/clementine/default.nix
··· 23 23 , libpulseaudio 24 24 , gvfs 25 25 , libcdio 26 - , libspotify 27 26 , pcre 28 27 , projectm 29 28 , protobuf ··· 48 49 withMTP = config.clementine.mtp or true; 49 50 withCD = config.clementine.cd or true; 50 51 withCloud = config.clementine.cloud or true; 51 - 52 + in mkDerivation { 53 + pname = "clementine"; 52 54 version = "unstable-2022-04-11"; 53 55 54 56 src = fetchFromGitHub { ··· 58 58 rev = "250024e117fbe5fae7c62b9c8e655d66412a6ed7"; 59 59 sha256 = "06fcbs3wig3mh711iypyj49qm5246f7qhvgvv8brqfrd8cqyh6qf"; 60 60 }; 61 - 62 - patches = [ 63 - ./clementine-spotify-blob.patch 64 - ]; 65 61 66 62 nativeBuildInputs = [ 67 63 cmake ··· 97 101 98 102 alsa-lib 99 103 ] 104 + # gst_plugins needed for setup-hooks 105 + ++ gst_plugins 100 106 ++ lib.optionals (withIpod) [ libgpod libplist usbmuxd ] 101 107 ++ lib.optionals (withMTP) [ libmtp ] 102 108 ++ lib.optionals (withCD) [ libcdio ] ··· 113 115 -e 's,libprotobuf.a,protobuf,g' 114 116 ''; 115 117 116 - free = mkDerivation { 117 - pname = "clementine-free"; 118 - inherit version; 119 - inherit src patches nativeBuildInputs postPatch; 118 + preConfigure = '' 119 + rm -rf ext/{,lib}clementine-spotifyblob 120 + ''; 120 121 121 - # gst_plugins needed for setup-hooks 122 - buildInputs = buildInputs ++ gst_plugins; 122 + cmakeFlags = [ 123 + "-DUSE_SYSTEM_PROJECTM=ON" 124 + "-DSPOTIFY_BLOB=OFF" 125 + ]; 123 126 124 - preConfigure = '' 125 - rm -rf ext/{,lib}clementine-spotifyblob 126 - ''; 127 + postInstall = '' 128 + wrapProgram $out/bin/clementine \ 129 + --prefix GST_PLUGIN_SYSTEM_PATH_1_0 : "$GST_PLUGIN_SYSTEM_PATH_1_0" 130 + ''; 127 131 128 - cmakeFlags = [ 129 - "-DUSE_SYSTEM_PROJECTM=ON" 130 - "-DSPOTIFY_BLOB=OFF" 131 - ]; 132 - 133 - passthru.unfree = unfree; 134 - 135 - postInstall = '' 136 - wrapProgram $out/bin/clementine \ 137 - --prefix GST_PLUGIN_SYSTEM_PATH_1_0 : "$GST_PLUGIN_SYSTEM_PATH_1_0" 138 - ''; 139 - 140 - meta = with lib; { 141 - homepage = "https://www.clementine-player.org"; 142 - description = "A multiplatform music player"; 143 - license = licenses.gpl3Plus; 144 - platforms = platforms.linux; 145 - maintainers = [ maintainers.ttuegel ]; 146 - }; 132 + meta = with lib; { 133 + homepage = "https://www.clementine-player.org"; 134 + description = "A multiplatform music player"; 135 + license = licenses.gpl3Plus; 136 + platforms = platforms.linux; 137 + maintainers = [ maintainers.ttuegel ]; 147 138 }; 148 - 149 - # Unfree Spotify blob for Clementine 150 - unfree = mkDerivation { 151 - pname = "clementine-blob"; 152 - inherit version; 153 - # Use the same patches and sources as Clementine 154 - inherit src nativeBuildInputs patches postPatch; 155 - 156 - buildInputs = buildInputs ++ [ libspotify ]; 157 - # Only build and install the Spotify blob 158 - preBuild = '' 159 - cd ext/clementine-spotifyblob 160 - ''; 161 - postInstall = '' 162 - mkdir -p $out/libexec/clementine 163 - mv $out/bin/clementine-spotifyblob $out/libexec/clementine 164 - rmdir $out/bin 165 - 166 - makeWrapper ${free}/bin/clementine $out/bin/clementine \ 167 - --set CLEMENTINE_SPOTIFYBLOB $out/libexec/clementine 168 - 169 - mkdir -p $out/share 170 - for dir in applications icons kde4; do 171 - ln -s "${free}/share/$dir" "$out/share/$dir" 172 - done 173 - ''; 174 - 175 - meta = with lib; { 176 - homepage = "https://www.clementine-player.org"; 177 - description = "Spotify integration for Clementine"; 178 - # The blob itself is Apache-licensed, although libspotify is unfree. 179 - license = licenses.asl20; 180 - platforms = platforms.linux; 181 - maintainers = [ maintainers.ttuegel ]; 182 - }; 183 - }; 184 - 185 - in 186 - free 139 + }
-4
pkgs/applications/audio/mopidy/default.nix
··· 33 33 34 34 mopidy-soundcloud = callPackage ./soundcloud.nix { }; 35 35 36 - mopidy-spotify = callPackage ./spotify.nix { }; 37 - 38 - mopidy-spotify-tunigo = callPackage ./spotify-tunigo.nix { }; 39 - 40 36 mopidy-tunein = callPackage ./tunein.nix { }; 41 37 42 38 mopidy-youtube = callPackage ./youtube.nix { };
-23
pkgs/applications/audio/mopidy/spotify-tunigo.nix
··· 1 - { lib, fetchFromGitHub, pythonPackages, mopidy, mopidy-spotify }: 2 - 3 - pythonPackages.buildPythonApplication rec { 4 - pname = "mopidy-spotify-tunigo"; 5 - version = "1.0.0"; 6 - 7 - src = fetchFromGitHub { 8 - owner = "trygveaa"; 9 - repo = "mopidy-spotify-tunigo"; 10 - rev = "v${version}"; 11 - sha256 = "1jwk0b2iz4z09qynnhcr07w15lx6i1ra09s9lp48vslqcf2fp36x"; 12 - }; 13 - 14 - propagatedBuildInputs = [ mopidy mopidy-spotify pythonPackages.tunigo ]; 15 - 16 - doCheck = false; 17 - 18 - meta = with lib; { 19 - description = "Mopidy extension for providing the browse feature of Spotify"; 20 - license = licenses.asl20; 21 - maintainers = [ maintainers.spwhitt ]; 22 - }; 23 - }
-25
pkgs/applications/audio/mopidy/spotify.nix
··· 1 - { lib, fetchFromGitHub, pythonPackages, mopidy }: 2 - 3 - pythonPackages.buildPythonApplication rec { 4 - pname = "mopidy-spotify"; 5 - version = "4.1.1"; 6 - 7 - src = fetchFromGitHub { 8 - owner = "mopidy"; 9 - repo = "mopidy-spotify"; 10 - rev = "v${version}"; 11 - sha256 = "1qsac2yy26cdlsmxd523v8ayacs0s6jj9x79sngwap781i63zqrm"; 12 - }; 13 - 14 - propagatedBuildInputs = [ mopidy pythonPackages.pyspotify ]; 15 - 16 - doCheck = false; 17 - 18 - meta = with lib; { 19 - homepage = "https://www.mopidy.com/"; 20 - description = "Mopidy extension for playing music from Spotify"; 21 - license = licenses.asl20; 22 - maintainers = with maintainers; [ rski ]; 23 - hydraPlatforms = [ ]; 24 - }; 25 - }
-91
pkgs/development/libraries/libspotify/default.nix
··· 1 - { lib, stdenv, fetchurl, libspotify, alsa-lib, readline, pkg-config, apiKey ? null, unzip, gnused }: 2 - 3 - let 4 - version = "12.1.51"; 5 - isLinux = (stdenv.hostPlatform.system == "x86_64-linux" || stdenv.hostPlatform.system == "i686-linux"); 6 - in 7 - 8 - if (stdenv.hostPlatform.system != "x86_64-linux" && stdenv.hostPlatform.system != "x86_64-darwin" && stdenv.hostPlatform.system != "i686-linux") 9 - then throw "Check https://developer.spotify.com/technologies/libspotify/ for a tarball for your system and add it here" 10 - else stdenv.mkDerivation { 11 - pname = "libspotify"; 12 - inherit version; 13 - 14 - src = 15 - if stdenv.hostPlatform.system == "x86_64-linux" then 16 - fetchurl { 17 - url = "https://developer.spotify.com/download/libspotify/libspotify-${version}-Linux-x86_64-release.tar.gz"; 18 - sha256 = "0n0h94i4xg46hfba95n3ypah93crwb80bhgsg00f6sms683lx8a3"; 19 - } 20 - else if stdenv.hostPlatform.system == "x86_64-darwin" then 21 - fetchurl { 22 - url = "https://developer.spotify.com/download/libspotify/libspotify-${version}-Darwin-universal.zip"; 23 - sha256 = "1gcgrc8arim3hnszcc886lmcdb4iigc08abkaa02l6gng43ky1c0"; 24 - } 25 - else if stdenv.hostPlatform.system == "i686-linux" then 26 - fetchurl { 27 - url = "https://developer.spotify.com/download/libspotify/libspotify-${version}-Linux-i686-release.tar.gz"; 28 - sha256 = "1bjmn64gbr4p9irq426yap4ipq9rb84zsyhjjr7frmmw22xb86ll"; 29 - } 30 - else 31 - null; 32 - 33 - dontBuild = true; 34 - 35 - installPhase = if (isLinux) 36 - then "installPhase" 37 - else '' 38 - mkdir -p "$out"/include/libspotify 39 - mv -v libspotify.framework/Versions/Current/Headers/api.h \ 40 - "$out"/include/libspotify 41 - mkdir -p "$out"/lib 42 - mv -v libspotify.framework/Versions/Current/libspotify \ 43 - "$out"/lib/libspotify.dylib 44 - mkdir -p "$out"/share/man 45 - mv -v man3 "$out"/share/man 46 - ''; 47 - 48 - 49 - # darwin-specific 50 - nativeBuildInputs = lib.optional (stdenv.hostPlatform.system == "x86_64-darwin") unzip; 51 - 52 - # linux-specific 53 - installFlags = lib.optional isLinux 54 - "prefix=$(out)"; 55 - patchPhase = lib.optionalString isLinux 56 - "${gnused}/bin/sed -i 's/ldconfig//' Makefile"; 57 - postInstall = lib.optionalString isLinux 58 - "mv -v share $out"; 59 - 60 - passthru = { 61 - samples = if apiKey == null 62 - then throw '' 63 - Please visit ${libspotify.meta.homepage} to get an api key then set config.libspotify.apiKey accordingly 64 - '' else stdenv.mkDerivation { 65 - pname = "libspotify-samples"; 66 - inherit version; 67 - src = libspotify.src; 68 - nativeBuildInputs = [ pkg-config ]; 69 - buildInputs = [ libspotify readline ] 70 - ++ lib.optional (!stdenv.isDarwin) alsa-lib; 71 - postUnpack = "sourceRoot=$sourceRoot/share/doc/libspotify/examples"; 72 - patchPhase = "cp ${apiKey} appkey.c"; 73 - installPhase = '' 74 - mkdir -p $out/bin 75 - install -m 755 jukebox/jukebox $out/bin 76 - install -m 755 spshell/spshell $out/bin 77 - install -m 755 localfiles/posix_stu $out/bin 78 - ''; 79 - meta = libspotify.meta // { description = "Spotify API library samples"; }; 80 - }; 81 - 82 - inherit apiKey; 83 - }; 84 - 85 - meta = with lib; { 86 - description = "Spotify API library"; 87 - homepage = "https://developer.spotify.com/technologies/libspotify"; 88 - maintainers = with maintainers; [ lovek323 ]; 89 - license = licenses.unfree; 90 - }; 91 - }
-45
pkgs/development/python-modules/pyspotify/default.nix
··· 1 - { lib 2 - , stdenv 3 - , buildPythonPackage 4 - , fetchFromGitHub 5 - , cffi 6 - , libspotify 7 - }: 8 - 9 - buildPythonPackage rec { 10 - pname = "pyspotify"; 11 - version = "2.1.3"; 12 - 13 - src = fetchFromGitHub { 14 - owner = "mopidy"; 15 - repo = "pyspotify"; 16 - rev = "v${version}"; 17 - sha256 = "sha256-CjIRwSlR5HPOJ9tp7lrdcDPiKH3p/PxvEJ8sqVD5s3Q="; 18 - }; 19 - 20 - propagatedBuildInputs = [ cffi ]; 21 - buildInputs = [ libspotify ]; 22 - 23 - # python zip complains about old timestamps 24 - preConfigure = '' 25 - find -print0 | xargs -0 touch 26 - ''; 27 - 28 - postInstall = lib.optionalString stdenv.isDarwin '' 29 - find "$out" -name _spotify.so -exec \ 30 - install_name_tool -change \ 31 - @loader_path/../Frameworks/libspotify.framework/libspotify \ 32 - ${libspotify}/lib/libspotify.dylib \ 33 - {} \; 34 - ''; 35 - 36 - # There are no tests 37 - doCheck = false; 38 - 39 - meta = with lib; { 40 - homepage = "http://pyspotify.mopidy.com"; 41 - description = "A Python interface to Spotify’s online music streaming service"; 42 - license = licenses.unfree; 43 - maintainers = with maintainers; [ lovek323 ]; 44 - }; 45 - }
+4
pkgs/top-level/aliases.nix
··· 193 193 clawsMail = throw "'clawsMail' has been renamed to/replaced by 'claws-mail'"; # Converted to throw 2022-02-22 194 194 cldr-emoji-annotation = throw "'cldr-emoji-annotation' has been removed, as it was unmaintained; use 'cldr-annotations' instead"; # Added 2022-04-03 195 195 clearsilver = throw "clearsilver has been removed: abandoned by upstream"; # Added 2022-03-15 196 + clementineUnfree = throw "clementineUnfree has been removed because Spotify stopped supporting libspotify"; # added 2022-05-29 196 197 clutter_gtk = throw "'clutter_gtk' has been renamed to/replaced by 'clutter-gtk'"; # Converted to throw 2022-02-22 197 198 cmakeWithQt4Gui = throw "cmakeWithQt4Gui has been removed in favor of cmakeWithGui (Qt 5)"; # Added 2021-05 198 199 codimd = hedgedoc; # Added 2020-11-29 ··· 699 698 libressl_3_2 = throw "'libressl_3_2' has reached end-of-life "; # Added 2022-03-19 700 699 librsync_0_9 = throw "librsync_0_9 has been removed"; # Added 2021-07-24 701 700 libseat = seatd; # Added 2021-06-24 701 + libspotify = throw "libspotify has been removed because Spotify stopped supporting it"; # added 2022-05-29 702 702 libstdcxxHook = throw "libstdcxx hook has been removed because cc-wrapper is now directly aware of the c++ standard library intended to be used"; # Added 2020-06-22 703 703 libsysfs = throw "'libsysfs' has been renamed to/replaced by 'sysfsutils'"; # Converted to throw 2022-02-22 704 704 libtidy = throw "'libtidy' has been renamed to/replaced by 'html-tidy'"; # Converted to throw 2022-02-22 ··· 844 842 mopidy-gmusic = throw "mopidy-gmusic has been removed because Google Play Music was discontinued"; # Added 2021-03-07 845 843 mopidy-local-images = throw "mopidy-local-images has been removed as it's unmaintained. Its functionality has been merged into the mopidy-local extension"; # Added 2020-10-18 846 844 mopidy-local-sqlite = throw "mopidy-local-sqlite has been removed as it's unmaintained. Its functionality has been merged into the mopidy-local extension"; # Added 2020-10-18 845 + mopidy-spotify = throw "mopidy-spotify has been removed because Spotify stopped supporting libspotify"; # added 2022-05-29 846 + mopidy-spotify-tunigo = throw "mopidy-spotify-tunigo has been removed because Spotify stopped supporting libspotify"; # added 2022-05-29 847 847 848 848 morituri = throw "'morituri' has been renamed to/replaced by 'whipper'"; # Converted to throw 2022-02-22 849 849 mozart-binary = mozart2-binary; # Added 2019-09-23
-6
pkgs/top-level/all-packages.nix
··· 4625 4625 protobuf = protobuf3_19; 4626 4626 }; 4627 4627 4628 - clementineUnfree = clementine.unfree; 4629 - 4630 4628 mellowplayer = libsForQt5.callPackage ../applications/audio/mellowplayer { }; 4631 4629 4632 4630 ciopfs = callPackage ../tools/filesystems/ciopfs { }; ··· 28216 28218 mopidy-scrobbler 28217 28219 mopidy-somafm 28218 28220 mopidy-soundcloud 28219 - mopidy-spotify 28220 - mopidy-spotify-tunigo 28221 28221 mopidy-subidy 28222 28222 mopidy-tunein 28223 28223 mopidy-youtube ··· 29715 29719 spotify-unwrapped = callPackage ../applications/audio/spotify { }; 29716 29720 29717 29721 spotify = callPackage ../applications/audio/spotify/wrapper.nix { }; 29718 - 29719 - libspotify = callPackage ../development/libraries/libspotify (config.libspotify or {}); 29720 29722 29721 29723 sourcetrail = let 29722 29724 llvmPackages = llvmPackages_10;
+1
pkgs/top-level/python-aliases.nix
··· 113 113 pymssql = throw "pymssql has been abandoned upstream."; # added 2020-05-04 114 114 pyreadability = readability-lxml; # added 2022-05-24 115 115 pysmart-smartx = pysmart; # added 2021-10-22 116 + pyspotify = throw "pyspotify has been removed because Spotify stopped supporting libspotify"; # added 2022-05-29 116 117 pytest_6 = pytest; # added 2022-02-10 117 118 pytestcov = pytest-cov; # added 2021-01-04 118 119 pytest-pep8 = pytestpep8; # added 2021-01-04
-2
pkgs/top-level/python-packages.nix
··· 8079 8079 8080 8080 pyspnego = callPackage ../development/python-modules/pyspnego { }; 8081 8081 8082 - pyspotify = callPackage ../development/python-modules/pyspotify { }; 8083 - 8084 8082 pysptk = callPackage ../development/python-modules/pysptk { }; 8085 8083 8086 8084 pysqlcipher3 = callPackage ../development/python-modules/pysqlcipher3 {