diff options
author | Weijia Wang <9713184+wegank@users.noreply.github.com> | 2024-03-31 20:07:43 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-31 20:07:43 +0200 |
commit | 1a40a30ce5f052f245f08fc93a51f30a9857535c (patch) | |
tree | 81be48e8684a42ac946777c302a61dd88a0d6bed /pkgs/applications/audio | |
parent | 0a087411842ecba13607a43a29369d08916ae11f (diff) | |
parent | c3bec58e7901f271636100cce463bfa2da53e9cc (diff) |
Merge pull request #297735 from Guanran928/yesplaymusic
yesplaymusic: 0.4.7 -> 0.4.8-2
Diffstat (limited to 'pkgs/applications/audio')
-rw-r--r-- | pkgs/applications/audio/yesplaymusic/default.nix | 121 |
1 files changed, 0 insertions, 121 deletions
diff --git a/pkgs/applications/audio/yesplaymusic/default.nix b/pkgs/applications/audio/yesplaymusic/default.nix deleted file mode 100644 index a7f81dcf4c40b..0000000000000 --- a/pkgs/applications/audio/yesplaymusic/default.nix +++ /dev/null @@ -1,121 +0,0 @@ -{ lib -, stdenv -, fetchurl -, undmg -, dpkg -, autoPatchelfHook -, wrapGAppsHook -, makeWrapper -, alsa-lib -, at-spi2-atk -, cups -, nspr -, nss -, mesa # for libgbm -, xorg -, xdg-utils -, libdrm -, libnotify -, libsecret -, libuuid -, gtk3 -, systemd -}: -let - pname = "yesplaymusic"; - version = "0.4.7"; - - srcs = { - x86_64-linux = fetchurl { - url = "https://github.com/qier222/YesPlayMusic/releases/download/v${version}/yesplaymusic_${version}_amd64.deb"; - hash = "sha256-nnnHE2OgIqoz3dC+G0219FVBhvnWivLW1BX6+NYo6Ng="; - }; - aarch64-linux = fetchurl { - url = "https://github.com/qier222/YesPlayMusic/releases/download/v${version}/yesplaymusic_${version}_arm64.deb"; - hash = "sha256-+rrhY5iDDt/nYs0Vz5/Ef0sgpsdBKMtb1aVfCZLgRgg="; - }; - x86_64-darwin = fetchurl { - url = "https://github.com/qier222/YesPlayMusic/releases/download/v${version}/YesPlayMusic-mac-${version}-x64.dmg"; - hash = "sha256-z8CASZRWKlj1g3mhxTMMeR4klTvQ2ReSrL7Rt18qQbM="; - }; - aarch64-darwin = fetchurl { - url = "https://github.com/qier222/YesPlayMusic/releases/download/v${version}/YesPlayMusic-mac-${version}-arm64.dmg"; - hash = "sha256-McYLczudKG4tRNIw/Ws4rht0n4tiKA2M99yKtJbdlY8="; - }; - }; - src = srcs.${stdenv.hostPlatform.system} or (throw "Unsupported system: ${stdenv.hostPlatform.system}"); - - libraries = [ - alsa-lib - at-spi2-atk - cups - nspr - nss - mesa - xorg.libxshmfence - xorg.libXScrnSaver - xorg.libXtst - xdg-utils - libdrm - libnotify - libsecret - libuuid - gtk3 - ]; - - meta = with lib; { - description = "A good-looking third-party netease cloud music player"; - mainProgram = "yesplaymusic"; - homepage = "https://github.com/qier222/YesPlayMusic/"; - license = licenses.mit; - maintainers = with maintainers; [ ChaosAttractor ]; - platforms = builtins.attrNames srcs; - }; -in -if stdenv.isDarwin -then stdenv.mkDerivation { - inherit pname version src meta; - - nativeBuildInputs = [ undmg ]; - - sourceRoot = "."; - - installPhase = '' - mkdir -p $out/Applications - cp -r *.app $out/Applications - ''; -} -else stdenv.mkDerivation { - inherit pname version src meta; - - nativeBuildInputs = [ - autoPatchelfHook - wrapGAppsHook - makeWrapper - ]; - - buildInputs = libraries; - - runtimeDependencies = [ - (lib.getLib systemd) - ]; - - unpackPhase = '' - ${dpkg}/bin/dpkg-deb -x $src . - ''; - - installPhase = '' - runHook preInstall - - mkdir -p $out/bin - cp -r opt $out/opt - cp -r usr/share $out/share - substituteInPlace $out/share/applications/yesplaymusic.desktop \ - --replace "/opt/YesPlayMusic/yesplaymusic" "$out/bin/yesplaymusic" - makeWrapper $out/opt/YesPlayMusic/yesplaymusic $out/bin/yesplaymusic \ - --argv0 "yesplaymusic" \ - --add-flags "$out/opt/YesPlayMusic/resources/app.asar" - - runHook postInstall - ''; -} |