Skip to content

Commit

Permalink
ytmdesktop: 2.0.5 -> 2.0.6 (#351671)
Browse files Browse the repository at this point in the history
  • Loading branch information
emilazy authored Oct 27, 2024
2 parents 1661ad6 + fbd58d8 commit e979914
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions pkgs/by-name/yt/ytmdesktop/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
asar,
commandLineArgs ? "",
copyDesktopItems,
electron_30,
electron_33,
fetchurl,
makeDesktopItem,
makeWrapper,
Expand All @@ -12,7 +12,7 @@
}:
stdenv.mkDerivation (finalAttrs: {
pname = "ytmdesktop";
version = "2.0.5";
version = "2.0.6";

desktopItems = [
(makeDesktopItem {
Expand Down Expand Up @@ -40,7 +40,7 @@ stdenv.mkDerivation (finalAttrs: {

src = fetchurl {
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 = ''
Expand Down Expand Up @@ -80,7 +80,7 @@ stdenv.mkDerivation (finalAttrs: {
fixupPhase = ''
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 "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--ozone-platform-hint=auto --enable-features=WaylandWindowDecorations}}" \
--add-flags ${lib.escapeShellArg commandLineArgs}
Expand All @@ -96,7 +96,7 @@ stdenv.mkDerivation (finalAttrs: {
license = lib.licenses.gpl3Only;
mainProgram = finalAttrs.pname;
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
# 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:
Expand Down

0 comments on commit e979914

Please sign in to comment.