muse-sounds-manager: use permalink provided by Muse Group and remove unzip dependency (#541275)

This commit is contained in:
Peder Bergebakken Sundt
2026-07-18 18:07:14 +00:00
committed by GitHub
@@ -13,30 +13,21 @@
libice,
libsm,
openssl,
unzip,
xdg-utils,
makeWrapper,
}:
stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
pname = "muse-sounds-manager";
version = "2.2.1.953";
# Use web.archive.org since upstream does not provide a stable (versioned) URL.
# To see if there are new versions on the Web Archive, visit
# http://web.archive.org/cdx/search/cdx?url=https://muse-cdn.com/Muse_Sounds_Manager_x64.tar.gz
# then replace the date in the URL below with date when the SHA1
# changes (currently CQDUS5RIVPTNZF65NNOVKDG2BCVCXH6H) and replace
# the version above with the version in the .deb metadata (or in the
# settings of muse-sounds-manager).
# Permalink from https://support.musehub.com/en/articles/15070607-changelog
src = fetchurl {
url = "https://web.archive.org/web/20260710024139if_/https://muse-cdn.com/Muse_Sounds_Manager_x64.tar.gz";
url = "https://muse-cdn.com/muse-sounds-manager/Muse_Sounds_Manager_x64_${finalAttrs.version}.tar.gz";
hash = "sha256-y7fKHh2pG8uT4p0vq20rsW8bSAp1mepkd2sW/06N3EI=";
};
nativeBuildInputs = [
autoPatchelfHook
makeWrapper
];
buildInputs = [
@@ -44,7 +35,7 @@ stdenv.mkDerivation rec {
stdenv.cc.cc
zlib
]
++ runtimeDependencies;
++ finalAttrs.runtimeDependencies;
runtimeDependencies = map lib.getLib [
icu
@@ -70,8 +61,6 @@ stdenv.mkDerivation rec {
postInstall = ''
ln -s ${xdg-utils}/bin/xdg-open $out/bin/open
wrapProgram $out/bin/muse-sounds-manager \
--prefix PATH : ${lib.makeBinPath [ unzip ]}
'';
dontStrip = true;
@@ -87,4 +76,4 @@ stdenv.mkDerivation rec {
platforms = [ "x86_64-linux" ];
sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
};
}
})