File tree Expand file tree Collapse file tree 1 file changed +78
-0
lines changed
pkgs/by-name/mu/muse-sounds-manager Expand file tree Collapse file tree 1 file changed +78
-0
lines changed Original file line number Diff line number Diff line change 1+ {
2+ lib ,
3+ stdenv ,
4+ fetchurl ,
5+ autoPatchelfHook ,
6+ dpkg ,
7+ fontconfig ,
8+ zlib ,
9+ icu ,
10+ libX11 ,
11+ libXext ,
12+ libXi ,
13+ libXrandr ,
14+ libICE ,
15+ libSM ,
16+ openssl ,
17+ } :
18+
19+ stdenv . mkDerivation rec {
20+ pname = "muse-sounds-manager" ;
21+ version = "1.1.0.587" ;
22+
23+ # Use web.archive.org since upstream does not provide a stable (versioned) URL.
24+ # 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
26+ # then replace the date in the URL below with date when the SHA1
27+ # changes (currently A3NX3WHFZWXCHZVME2ABUL2VRENTWOD5) and replace
28+ # the version above with the version in the .deb metadata (or in the
29+ # settings of muse-sounds-manager).
30+ 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+ } ;
34+
35+ nativeBuildInputs = [
36+ autoPatchelfHook
37+ dpkg
38+ ] ;
39+
40+ buildInputs = [
41+ fontconfig
42+ stdenv . cc . cc
43+ zlib
44+ ] ++ runtimeDependencies ;
45+
46+ runtimeDependencies = map lib . getLib [
47+ icu
48+ libX11
49+ libXext
50+ libXi
51+ libXrandr
52+ libICE
53+ libSM
54+ openssl
55+ ] ;
56+
57+ unpackPhase = "dpkg -x $src ." ;
58+
59+ installPhase = ''
60+ runHook preInstall
61+
62+ mkdir -p $out
63+ mv usr/* opt $out/
64+ substituteInPlace $out/bin/muse-sounds-manager --replace-fail /opt/ $out/opt/
65+
66+ runHook postInstall
67+ '' ;
68+
69+ meta = {
70+ description = "Manage Muse Sounds (Muse Hub) libraries for MuseScore" ;
71+ homepage = "https://musescore.org/" ;
72+ license = lib . licenses . unfree ;
73+ mainProgram = "muse-sounds-manager" ;
74+ maintainers = with lib . maintainers ; [ orivej ] ;
75+ platforms = [ "x86_64-linux" ] ;
76+ sourceProvenance = with lib . sourceTypes ; [ binaryNativeCode ] ;
77+ } ;
78+ }
You can’t perform that action at this time.
0 commit comments