ytmdesktop: 2.0.5 -> 2.0.6 (#351671)

This commit is contained in:
Emily 2024-10-27 19:45:55 +00:00 committed by GitHub
commit e979914db4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -3,7 +3,7 @@
asar, asar,
commandLineArgs ? "", commandLineArgs ? "",
copyDesktopItems, copyDesktopItems,
electron_30, electron_33,
fetchurl, fetchurl,
makeDesktopItem, makeDesktopItem,
makeWrapper, makeWrapper,
@ -12,7 +12,7 @@
}: }:
stdenv.mkDerivation (finalAttrs: { stdenv.mkDerivation (finalAttrs: {
pname = "ytmdesktop"; pname = "ytmdesktop";
version = "2.0.5"; version = "2.0.6";
desktopItems = [ desktopItems = [
(makeDesktopItem { (makeDesktopItem {
@ -40,7 +40,7 @@ stdenv.mkDerivation (finalAttrs: {
src = fetchurl { src = fetchurl {
url = "https://github.com/ytmdesktop/ytmdesktop/releases/download/v${finalAttrs.version}/youtube-music-desktop-app_${finalAttrs.version}_amd64.deb"; url = "https://github.com/ytmdesktop/ytmdesktop/releases/download/v${finalAttrs.version}/youtube-music-desktop-app_${finalAttrs.version}_amd64.deb";
hash = "sha256-0j8HVmkFyTk/Jpq9dfQXFxd2jnLwzfEiqCgRHuc5g9o="; hash = "sha256-uLTnVA9ooGlbtmUGoYtrT9IlOhTAJpEXMr1GSs3ae/8=";
}; };
unpackPhase = '' unpackPhase = ''
@ -80,7 +80,7 @@ stdenv.mkDerivation (finalAttrs: {
fixupPhase = '' fixupPhase = ''
runHook preFixup runHook preFixup
makeWrapper ${lib.getExe electron_30} $out/bin/ytmdesktop \ makeWrapper ${lib.getExe electron_33} $out/bin/ytmdesktop \
--add-flags $out/lib/resources/app.asar \ --add-flags $out/lib/resources/app.asar \
--add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--ozone-platform-hint=auto --enable-features=WaylandWindowDecorations}}" \ --add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--ozone-platform-hint=auto --enable-features=WaylandWindowDecorations}}" \
--add-flags ${lib.escapeShellArg commandLineArgs} --add-flags ${lib.escapeShellArg commandLineArgs}
@ -96,7 +96,7 @@ stdenv.mkDerivation (finalAttrs: {
license = lib.licenses.gpl3Only; license = lib.licenses.gpl3Only;
mainProgram = finalAttrs.pname; mainProgram = finalAttrs.pname;
maintainers = [ lib.maintainers.cjshearer ]; maintainers = [ lib.maintainers.cjshearer ];
inherit (electron_30.meta) platforms; inherit (electron_33.meta) platforms;
# While the files we extract from the .deb are cross-platform (javascript), the installation # While the files we extract from the .deb are cross-platform (javascript), the installation
# process for darwin is different, and I don't have a test device. PRs are welcome if you can # process for darwin is different, and I don't have a test device. PRs are welcome if you can
# add the correct installation steps. I would suggest looking at the following: # add the correct installation steps. I would suggest looking at the following: