Merge pull request #199779 from SuperSandro2000/spotify

authored by Sandro and committed by GitHub ef98abf6 ed63dc36

+9 -35
+7 -1
pkgs/applications/audio/spotify/default.nix
··· 2 , glib, pango, cairo, atk, gdk-pixbuf, gtk3, cups, nspr, nss, libpng, libnotify 3 , libgcrypt, systemd, fontconfig, dbus, expat, ffmpeg, curlWithGnuTls, zlib, gnome 4 , at-spi2-atk, at-spi2-core, libpulseaudio, libdrm, mesa, libxkbcommon 5 }: 6 7 let ··· 67 in 68 69 stdenv.mkDerivation { 70 - pname = "spotify-unwrapped"; 71 inherit version; 72 73 # fetch from snapcraft instead of the debian repository most repos fetch from. ··· 143 librarypath="${lib.makeLibraryPath deps}:$libdir" 144 wrapProgram $out/share/spotify/spotify \ 145 ''${gappsWrapperArgs[@]} \ 146 --prefix LD_LIBRARY_PATH : "$librarypath" \ 147 --prefix PATH : "${gnome.zenity}/bin" 148
··· 2 , glib, pango, cairo, atk, gdk-pixbuf, gtk3, cups, nspr, nss, libpng, libnotify 3 , libgcrypt, systemd, fontconfig, dbus, expat, ffmpeg, curlWithGnuTls, zlib, gnome 4 , at-spi2-atk, at-spi2-core, libpulseaudio, libdrm, mesa, libxkbcommon 5 + # High-DPI support: Spotify's --force-device-scale-factor argument 6 + # not added if `null`, otherwise, should be a number. 7 + , deviceScaleFactor ? null 8 }: 9 10 let ··· 70 in 71 72 stdenv.mkDerivation { 73 + pname = "spotify"; 74 inherit version; 75 76 # fetch from snapcraft instead of the debian repository most repos fetch from. ··· 146 librarypath="${lib.makeLibraryPath deps}:$libdir" 147 wrapProgram $out/share/spotify/spotify \ 148 ''${gappsWrapperArgs[@]} \ 149 + ${lib.optionalString (deviceScaleFactor != null) '' 150 + --add-flags "--force-device-scale-factor=${toString deviceScaleFactor}" \ 151 + ''} \ 152 --prefix LD_LIBRARY_PATH : "$librarypath" \ 153 --prefix PATH : "${gnome.zenity}/bin" 154
-31
pkgs/applications/audio/spotify/wrapper.nix
··· 1 - { symlinkJoin 2 - , lib 3 - , spotify-unwrapped 4 - , makeWrapper 5 - 6 - # High-DPI support: Spotify's --force-device-scale-factor argument; not added 7 - # if `null`, otherwise, should be a number. 8 - , deviceScaleFactor ? null 9 - }: 10 - 11 - symlinkJoin { 12 - name = "spotify-${spotify-unwrapped.version}"; 13 - 14 - paths = [ spotify-unwrapped.out ]; 15 - 16 - nativeBuildInputs = [ makeWrapper ]; 17 - preferLocalBuild = true; 18 - passthru.unwrapped = spotify-unwrapped; 19 - postBuild = '' 20 - wrapProgram $out/bin/spotify \ 21 - ${lib.optionalString (deviceScaleFactor != null) '' 22 - --add-flags ${lib.escapeShellArg "--force-device-scale-factor=${ 23 - builtins.toString deviceScaleFactor 24 - }"} 25 - ''} 26 - ''; 27 - 28 - meta = spotify-unwrapped.meta // { 29 - priority = (spotify-unwrapped.meta.priority or 0) - 1; 30 - }; 31 - }
···
+1
pkgs/top-level/aliases.nix
··· 1393 # spidermonkey is not ABI upwards-compatible, so only allow this for nix-shell 1394 spidermonkey = spidermonkey_78; # Added 2020-10-09 1395 split2flac = throw "split2flac has been removed. Consider using the shnsplit command from shntool package or help packaging unflac."; # added 2022-01-13 1396 spring-boot = spring-boot-cli; # added 2020-04-24 1397 sqlite3_analyzer = throw "'sqlite3_analyzer' has been renamed to/replaced by 'sqlite-analyzer'"; # Converted to throw 2022-02-22 1398 sqliteInteractive = throw "'sqliteInteractive' has been renamed to/replaced by 'sqlite-interactive'"; # Converted to throw 2022-02-22
··· 1393 # spidermonkey is not ABI upwards-compatible, so only allow this for nix-shell 1394 spidermonkey = spidermonkey_78; # Added 2020-10-09 1395 split2flac = throw "split2flac has been removed. Consider using the shnsplit command from shntool package or help packaging unflac."; # added 2022-01-13 1396 + spotify-unwrapped = spotify; # added 2022-11-06 1397 spring-boot = spring-boot-cli; # added 2020-04-24 1398 sqlite3_analyzer = throw "'sqlite3_analyzer' has been renamed to/replaced by 'sqlite-analyzer'"; # Converted to throw 2022-02-22 1399 sqliteInteractive = throw "'sqliteInteractive' has been renamed to/replaced by 'sqlite-interactive'"; # Converted to throw 2022-02-22
+1 -3
pkgs/top-level/all-packages.nix
··· 31935 autoreconfHook = buildPackages.autoreconfHook269; 31936 }; 31937 31938 - spotify-unwrapped = callPackage ../applications/audio/spotify { }; 31939 - 31940 - spotify = callPackage ../applications/audio/spotify/wrapper.nix { }; 31941 31942 spotifywm = callPackage ../applications/audio/spotifywm { }; 31943
··· 31935 autoreconfHook = buildPackages.autoreconfHook269; 31936 }; 31937 31938 + spotify = callPackage ../applications/audio/spotify { }; 31939 31940 spotifywm = callPackage ../applications/audio/spotifywm { }; 31941