@@ -4,31 +4,29 @@ let
4 libnbt = fetchFromGitHub {
4 libnbt = fetchFromGitHub {
5 owner = "MultiMC";
5 owner = "MultiMC";
6 repo = "libnbtplusplus";
6 repo = "libnbtplusplus";
7− rev = "5d0ffb50a526173ce58ae57136bf5d79a7e1920d";
7+ rev = "4b305bb";
8− sha256 = "05hnwfb77rmm9ba7n96g4g1sgwqqcmplvbcafsl76yxr6ysgw5jg";
8+ sha256 = "1zj7pxk0g5zl16hrngb4rss00hi019rylin7zgf18kaymc54nbcs";
11stdenv.mkDerivation {
11stdenv.mkDerivation {
12− name = "multimc-5";
12+ name = "multimc-0.5.1";
13 src = fetchFromGitHub {
13 src = fetchFromGitHub {
14 owner = "MultiMC";
14 owner = "MultiMC";
15 repo = "MultiMC5";
15 repo = "MultiMC5";
16− rev = "895d8ab4699f1b50bf03532c967a91f5ecb62a50";
16+ rev = "0.5.1";
17− sha256 = "179vc1iv57fx4g4h1wy8yvyvdm671jnvp6zi8pcr1n6azqhwklds";
17+ sha256 = "0wmlnwcq3gxrbmc53j96aa64pp1kmnlxiifhzngcb5kfmbbc8a20";
19 buildInputs = [ cmake qtbase jdk zlib file makeWrapper ];
19 buildInputs = [ cmake qtbase jdk zlib file makeWrapper ];
21 libpath = with xorg; [ libX11 libXext libXcursor libXrandr libXxf86vm libpulseaudio ];
21 libpath = with xorg; [ libX11 libXext libXcursor libXrandr libXxf86vm libpulseaudio ];
22 postUnpack = ''
22 postUnpack = ''
23− rmdir $sourceRoot/depends/libnbtplusplus
23+ rmdir $sourceRoot/libraries/libnbtplusplus
24− cp -r ${libnbt} $sourceRoot/depends/libnbtplusplus
24+ cp -r ${libnbt} $sourceRoot/libraries/libnbtplusplus
25− chmod 755 -R $sourceRoot/depends/libnbtplusplus
25+ chmod 755 -R $sourceRoot/libraries/libnbtplusplus
26 mkdir -pv $sourceRoot/build/
26 mkdir -pv $sourceRoot/build/
27 cp -v ${quazip.src} $sourceRoot/build/quazip-0.7.1.tar.gz
27 cp -v ${quazip.src} $sourceRoot/build/quazip-0.7.1.tar.gz
30− patches = [ ./multimc.patch ];
32 enableParallelBuilding = true;
30 enableParallelBuilding = true;
34 # the install rule tries to bundle ALL deps into the output for portability
32 # the install rule tries to bundle ALL deps into the output for portability
@@ -41,7 +39,7 @@ stdenv.mkDerivation {
41 mkdir -pv $out/bin/jars $out/lib
39 mkdir -pv $out/bin/jars $out/lib
42 cp -v MultiMC $out/bin/
40 cp -v MultiMC $out/bin/
43 cp -v jars/*.jar $out/bin/jars/ #*/
41 cp -v jars/*.jar $out/bin/jars/ #*/
44− cp -v librainbow.so libnbt++.so libMultiMC_logic.so $out/lib
42+ cp -v libMultiMC_rainbow.so libMultiMC_nbt++.so libMultiMC_logic.so libMultiMC_gui.so $out/lib
45 wrapProgram $out/bin/MultiMC --add-flags "-d \$HOME/.multimc/" --set GAME_LIBRARY_PATH $RESULT --prefix PATH : ${jdk}/bin/
43 wrapProgram $out/bin/MultiMC --add-flags "-d \$HOME/.multimc/" --set GAME_LIBRARY_PATH $RESULT --prefix PATH : ${jdk}/bin/