lol

muse-sounds-manager: 1.1.0.587 -> 2.0.4.872

+25 -13
+25 -13
pkgs/by-name/mu/muse-sounds-manager/package.nix
··· 3 3 stdenv, 4 4 fetchurl, 5 5 autoPatchelfHook, 6 - dpkg, 7 6 fontconfig, 8 7 zlib, 9 8 icu, ··· 14 13 libICE, 15 14 libSM, 16 15 openssl, 16 + unzip, 17 + xdg-utils, 18 + makeWrapper, 17 19 }: 18 20 19 21 stdenv.mkDerivation rec { 20 22 pname = "muse-sounds-manager"; 21 - version = "1.1.0.587"; 23 + version = "2.0.4.872"; 22 24 23 25 # Use web.archive.org since upstream does not provide a stable (versioned) URL. 24 26 # To see if there are new versions on the Web Archive, visit 25 - # http://web.archive.org/cdx/search/cdx?url=https://muse-cdn.com/Muse_Sounds_Manager_Beta.deb 27 + # http://web.archive.org/cdx/search/cdx?url=https://muse-cdn.com/Muse_Sounds_Manager_x64.tar.gz 26 28 # then replace the date in the URL below with date when the SHA1 27 - # changes (currently A3NX3WHFZWXCHZVME2ABUL2VRENTWOD5) and replace 29 + # changes (currently QLR46LKDOAPB7VSF45HEAXWVNWFJHITG) and replace 28 30 # the version above with the version in the .deb metadata (or in the 29 31 # settings of muse-sounds-manager). 30 32 src = fetchurl { 31 - url = "https://web.archive.org/web/20240826143936/https://muse-cdn.com/Muse_Sounds_Manager_Beta.deb"; 32 - hash = "sha256-wzZAIjme1cv8+jMLiKT7kUQvCb+UhsvOnLDV4hCL3hw="; 33 + url = "https://web.archive.org/web/20250729165100if_/https://muse-cdn.com/Muse_Sounds_Manager_x64.tar.gz"; 34 + hash = "sha256-VcLBXpLDk90yd0j9NIzBOXXAciSLWP9y5X51L2/9W4A="; 33 35 }; 34 36 35 37 nativeBuildInputs = [ 36 38 autoPatchelfHook 37 - dpkg 39 + makeWrapper 38 40 ]; 39 41 40 42 buildInputs = [ ··· 55 57 openssl 56 58 ]; 57 59 58 - unpackPhase = "dpkg -x $src ."; 59 - 60 60 installPhase = '' 61 61 runHook preInstall 62 62 63 - mkdir -p $out 64 - mv usr/* opt $out/ 65 - substituteInPlace $out/bin/muse-sounds-manager --replace-fail /opt/ $out/opt/ 63 + mkdir -p $out $out/share/applications $out/share/icons 64 + cp -p -R bin/ $out/ 65 + cp -p res/*.desktop $out/share/applications 66 + cp -p -R res/icons $out/share 66 67 67 68 runHook postInstall 68 69 ''; 69 70 71 + postInstall = '' 72 + ln -s ${xdg-utils}/bin/xdg-open $out/bin/open 73 + wrapProgram $out/bin/muse-sounds-manager \ 74 + --prefix PATH : ${lib.makeBinPath [ unzip ]} 75 + ''; 76 + 77 + dontStrip = true; 78 + 70 79 meta = { 71 80 description = "Manage Muse Sounds (Muse Hub) libraries for MuseScore"; 72 81 homepage = "https://musescore.org/"; 73 82 license = lib.licenses.unfree; 74 83 mainProgram = "muse-sounds-manager"; 75 - maintainers = with lib.maintainers; [ orivej ]; 84 + maintainers = with lib.maintainers; [ 85 + orivej 86 + sarunint 87 + ]; 76 88 platforms = [ "x86_64-linux" ]; 77 89 sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ]; 78 90 };