pear-desktop: rename from youtube-music, migrate to by-name (#473695)
This commit is contained in:
+15
-15
@@ -14,12 +14,12 @@
|
||||
nix-update-script,
|
||||
}:
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "youtube-music";
|
||||
pname = "pear-desktop";
|
||||
version = "3.11.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "th-ch";
|
||||
repo = "youtube-music";
|
||||
owner = "pear-devs";
|
||||
repo = "pear-desktop";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-M8YFpeauM55fpNyHSGQm8iZieV0oWqOieVThhglKKPE=";
|
||||
};
|
||||
@@ -63,9 +63,9 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
desktopItems = [
|
||||
(makeDesktopItem {
|
||||
name = "com.github.th_ch.youtube_music";
|
||||
exec = "youtube-music %u";
|
||||
icon = "youtube-music";
|
||||
desktopName = "YouTube Music";
|
||||
exec = "pear-desktop %u";
|
||||
icon = "pear-desktop";
|
||||
desktopName = "Pear Desktop";
|
||||
startupWMClass = "com.github.th_ch.youtube_music";
|
||||
categories = [ "AudioVideo" ];
|
||||
})
|
||||
@@ -78,15 +78,15 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
+ lib.optionalString stdenv.hostPlatform.isDarwin ''
|
||||
mkdir -p $out/{Applications,bin}
|
||||
mv pack/mac*/YouTube\ Music.app $out/Applications
|
||||
ln -s "$out/Applications/YouTube Music.app/Contents/MacOS/YouTube Music" $out/bin/youtube-music
|
||||
ln -s "$out/Applications/YouTube Music.app/Contents/MacOS/YouTube Music" $out/bin/pear-desktop
|
||||
''
|
||||
+ lib.optionalString (!stdenv.hostPlatform.isDarwin) ''
|
||||
mkdir -p "$out/share/youtube-music"
|
||||
cp -r pack/*-unpacked/{locales,resources{,.pak}} "$out/share/youtube-music"
|
||||
mkdir -p "$out/share/pear-desktop"
|
||||
cp -r pack/*-unpacked/{locales,resources{,.pak}} "$out/share/pear-desktop"
|
||||
|
||||
pushd assets/generated/icons/png
|
||||
for file in *.png; do
|
||||
install -Dm0644 $file $out/share/icons/hicolor/''${file//.png}/apps/youtube-music.png
|
||||
install -Dm0644 $file $out/share/icons/hicolor/''${file//.png}/apps/pear-desktop.png
|
||||
done
|
||||
popd
|
||||
''
|
||||
@@ -96,8 +96,8 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
'';
|
||||
|
||||
postFixup = lib.optionalString (!stdenv.hostPlatform.isDarwin) ''
|
||||
makeWrapper ${electron}/bin/electron $out/bin/youtube-music \
|
||||
--add-flags $out/share/youtube-music/resources/app.asar \
|
||||
makeWrapper ${electron}/bin/electron $out/bin/pear-desktop \
|
||||
--add-flags $out/share/pear-desktop/resources/app.asar \
|
||||
--add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--ozone-platform-hint=auto --enable-features=WaylandWindowDecorations --enable-wayland-ime=true --wayland-text-input-version=3}}" \
|
||||
--set-default ELECTRON_FORCE_IS_PACKAGED 1 \
|
||||
--set-default ELECTRON_IS_DEV 0 \
|
||||
@@ -108,8 +108,8 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
|
||||
meta = {
|
||||
description = "Electron wrapper around YouTube Music";
|
||||
homepage = "https://th-ch.github.io/youtube-music/";
|
||||
changelog = "https://github.com/th-ch/youtube-music/blob/master/changelog.md#${
|
||||
homepage = "https://github.com/pear-devs/pear-desktop";
|
||||
changelog = "https://github.com/pear-devs/pear-desktop/blob/master/changelog.md#${
|
||||
lib.replaceStrings [ "." ] [ "" ] finalAttrs.src.tag
|
||||
}";
|
||||
license = lib.licenses.mit;
|
||||
@@ -117,7 +117,7 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
aacebedo
|
||||
SuperSandro2000
|
||||
];
|
||||
mainProgram = "youtube-music";
|
||||
mainProgram = "pear-desktop";
|
||||
platforms = [
|
||||
"x86_64-linux"
|
||||
"aarch64-linux"
|
||||
@@ -1754,6 +1754,7 @@ mapAliases {
|
||||
yaml-cpp_0_3 = throw "yaml-cpp_0_3 has been removed, as it was unused"; # Added 2025-09-16
|
||||
yamlpath = throw "'yamlpath' has been removed because it has been marked as broken since at least November 2024."; # Added 2025-10-01
|
||||
yeahwm = throw "'yeahwm' has been removed, as it was broken and unmaintained upstream."; # Added 2025-06-12
|
||||
youtube-music = lib.warnOnInstantiate "'youtube-music' has been renamed to 'pear-desktop'" pear-desktop; # Added 2025-12-23
|
||||
yubikey-manager-qt = throw "'yubikey-manager-qt' has been removed due to being archived upstream. Consider using 'yubioath-flutter' instead."; # Added 2025-06-07
|
||||
yubikey-personalization-gui = throw "'yubikey-personalization-gui' has been removed due to being archived upstream. Consider using 'yubioath-flutter' instead."; # Added 2025-06-07
|
||||
zandronum-alpha = throw "'zandronum-alpha' has been removed as it was broken and the stable version has caught up"; # Added 2025-10-19
|
||||
|
||||
@@ -12478,8 +12478,6 @@ with pkgs;
|
||||
|
||||
youtube-dl-light = with python3Packages; toPythonApplication youtube-dl-light;
|
||||
|
||||
youtube-music = callPackage ../applications/audio/youtube-music { };
|
||||
|
||||
yt-dlp-light = yt-dlp.override {
|
||||
atomicparsleySupport = false;
|
||||
ffmpegSupport = false;
|
||||
|
||||
Reference in New Issue
Block a user