spotube: 4.0.2 -> 5.0.0 (#442180)

authored by Toma and committed by GitHub 73dfe087 dfef9b69

+19 -26
+19 -26
pkgs/by-name/sp/spotube/package.nix
··· 22 22 23 23 stdenv.mkDerivation (finalAttrs: { 24 24 pname = "spotube"; 25 - version = "4.0.2"; 25 + version = "5.0.0"; 26 26 27 27 src = finalAttrs.passthru.sources.${stdenv.hostPlatform.system}; 28 28 ··· 46 46 libappindicator 47 47 libnotify 48 48 libsoup_3 49 - mpv-unwrapped 50 49 webkitgtk_4_1 51 50 ]; 52 51 ··· 54 53 55 54 installPhase = '' 56 55 runHook preInstall 57 - 58 - ${lib.optionalString stdenv.hostPlatform.isLinux '' 59 - mkdir -p $out 60 - cp -r usr/* $out 61 - ''} 62 - 63 - ${lib.optionalString stdenv.hostPlatform.isDarwin '' 64 - mkdir -p $out/Applications 65 - cp -r Spotube.app $out/Applications 66 - makeBinaryWrapper $out/Applications/Spotube.app/Contents/MacOS/Spotube $out/bin/spotube 67 - ''} 68 - 56 + '' 57 + + lib.optionalString stdenv.hostPlatform.isLinux '' 58 + mkdir -p $out 59 + cp -r usr/* $out 60 + '' 61 + + lib.optionalString stdenv.hostPlatform.isDarwin '' 62 + mkdir -p $out/Applications 63 + cp -r Spotube.app $out/Applications 64 + makeBinaryWrapper $out/Applications/Spotube.app/Contents/MacOS/Spotube $out/bin/spotube 65 + '' 66 + + '' 69 67 runHook postInstall 70 68 ''; 71 69 72 - preFixup = lib.optionalString stdenv.hostPlatform.isLinux '' 73 - patchelf $out/share/spotube/lib/libmedia_kit_native_event_loop.so \ 74 - --replace-needed libmpv.so.1 libmpv.so 75 - ''; 76 - 77 70 postFixup = lib.optionalString stdenv.hostPlatform.isLinux '' 78 71 makeWrapper $out/share/spotube/spotube $out/bin/spotube \ 79 - "''${gappsWrapperArgs[@]}" \ 80 - --prefix LD_LIBRARY_PATH : $out/share/spotube/lib:${lib.makeLibraryPath [ mpv-unwrapped ]} \ 81 - --prefix PATH : ${lib.makeBinPath [ xdg-user-dirs ]} 72 + "''${gappsWrapperArgs[@]}" \ 73 + --prefix LD_LIBRARY_PATH : $out/share/spotube/lib:${lib.makeLibraryPath [ mpv-unwrapped ]} \ 74 + --prefix PATH : ${lib.makeBinPath [ xdg-user-dirs ]} 82 75 ''; 83 76 84 77 passthru.sources = ··· 94 87 { 95 88 "aarch64-linux" = fetchArtifact { 96 89 suffix = "linux-aarch64.deb"; 97 - hash = "sha256-zoJ0WPui6KdUyML47RbEBNySTZ8FvStYAOj1mndjh1s="; 90 + hash = "sha256-xMYqhywxJTghJlxqO05i79140R5PBOsMw66BYIWq5Vw="; 98 91 }; 99 92 "x86_64-linux" = fetchArtifact { 100 93 suffix = "linux-x86_64.deb"; 101 - hash = "sha256-SM/lWUhXe20FCgneegn5As5a53YBsoDIMfIYhRBHWjI="; 94 + hash = "sha256-ZsppON33jnn52eoVtCX7gyWy7lLlRRrhzvOz7reCP4Q="; 102 95 }; 103 96 "x86_64-darwin" = fetchArtifact { 104 97 suffix = "macos-universal.dmg"; 105 - hash = "sha256-0eNeMpC8usPfbuh2aj43n6KLysRQ55yLdOT7Z5faVLU="; 98 + hash = "sha256-OMgDMWBsG/Powfti4ObeZfWFir8KzCbzi8ujV6Y967s="; 106 99 }; 107 100 "aarch64-darwin" = fetchArtifact { 108 101 suffix = "macos-universal.dmg"; 109 - hash = "sha256-0eNeMpC8usPfbuh2aj43n6KLysRQ55yLdOT7Z5faVLU="; 102 + hash = "sha256-OMgDMWBsG/Powfti4ObeZfWFir8KzCbzi8ujV6Y967s="; 110 103 }; 111 104 }; 112 105