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 23 stdenv.mkDerivation (finalAttrs: { 24 pname = "spotube"; 25 - version = "4.0.2"; 26 27 src = finalAttrs.passthru.sources.${stdenv.hostPlatform.system}; 28 ··· 46 libappindicator 47 libnotify 48 libsoup_3 49 - mpv-unwrapped 50 webkitgtk_4_1 51 ]; 52 ··· 54 55 installPhase = '' 56 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 - 69 runHook postInstall 70 ''; 71 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 postFixup = lib.optionalString stdenv.hostPlatform.isLinux '' 78 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 ]} 82 ''; 83 84 passthru.sources = ··· 94 { 95 "aarch64-linux" = fetchArtifact { 96 suffix = "linux-aarch64.deb"; 97 - hash = "sha256-zoJ0WPui6KdUyML47RbEBNySTZ8FvStYAOj1mndjh1s="; 98 }; 99 "x86_64-linux" = fetchArtifact { 100 suffix = "linux-x86_64.deb"; 101 - hash = "sha256-SM/lWUhXe20FCgneegn5As5a53YBsoDIMfIYhRBHWjI="; 102 }; 103 "x86_64-darwin" = fetchArtifact { 104 suffix = "macos-universal.dmg"; 105 - hash = "sha256-0eNeMpC8usPfbuh2aj43n6KLysRQ55yLdOT7Z5faVLU="; 106 }; 107 "aarch64-darwin" = fetchArtifact { 108 suffix = "macos-universal.dmg"; 109 - hash = "sha256-0eNeMpC8usPfbuh2aj43n6KLysRQ55yLdOT7Z5faVLU="; 110 }; 111 }; 112
··· 22 23 stdenv.mkDerivation (finalAttrs: { 24 pname = "spotube"; 25 + version = "5.0.0"; 26 27 src = finalAttrs.passthru.sources.${stdenv.hostPlatform.system}; 28 ··· 46 libappindicator 47 libnotify 48 libsoup_3 49 webkitgtk_4_1 50 ]; 51 ··· 53 54 installPhase = '' 55 runHook preInstall 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 + + '' 67 runHook postInstall 68 ''; 69 70 postFixup = lib.optionalString stdenv.hostPlatform.isLinux '' 71 makeWrapper $out/share/spotube/spotube $out/bin/spotube \ 72 + "''${gappsWrapperArgs[@]}" \ 73 + --prefix LD_LIBRARY_PATH : $out/share/spotube/lib:${lib.makeLibraryPath [ mpv-unwrapped ]} \ 74 + --prefix PATH : ${lib.makeBinPath [ xdg-user-dirs ]} 75 ''; 76 77 passthru.sources = ··· 87 { 88 "aarch64-linux" = fetchArtifact { 89 suffix = "linux-aarch64.deb"; 90 + hash = "sha256-xMYqhywxJTghJlxqO05i79140R5PBOsMw66BYIWq5Vw="; 91 }; 92 "x86_64-linux" = fetchArtifact { 93 suffix = "linux-x86_64.deb"; 94 + hash = "sha256-ZsppON33jnn52eoVtCX7gyWy7lLlRRrhzvOz7reCP4Q="; 95 }; 96 "x86_64-darwin" = fetchArtifact { 97 suffix = "macos-universal.dmg"; 98 + hash = "sha256-OMgDMWBsG/Powfti4ObeZfWFir8KzCbzi8ujV6Y967s="; 99 }; 100 "aarch64-darwin" = fetchArtifact { 101 suffix = "macos-universal.dmg"; 102 + hash = "sha256-OMgDMWBsG/Powfti4ObeZfWFir8KzCbzi8ujV6Y967s="; 103 }; 104 }; 105