summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorRobin Gloster <mail@glob.in>2019-07-29 14:06:22 +0000
committerGitHub <noreply@github.com>2019-07-29 14:06:22 +0000
commit2b44d15be96a74b4dc2c58d29cbf9b26b2e4b500 (patch)
tree05d6ffa49e586578fa3eae1613549ebdf4bf5b69 /pkgs
parent4eee184db4d68368e157c8149cd8acf91ef3c3f8 (diff)
parentc79aa36292b4cdf0ef5810c9701b65ff693027ae (diff)
downloadnixpkgs-2b44d15be96a74b4dc2c58d29cbf9b26b2e4b500.tar
nixpkgs-2b44d15be96a74b4dc2c58d29cbf9b26b2e4b500.tar.gz
nixpkgs-2b44d15be96a74b4dc2c58d29cbf9b26b2e4b500.tar.bz2
nixpkgs-2b44d15be96a74b4dc2c58d29cbf9b26b2e4b500.tar.lz
nixpkgs-2b44d15be96a74b4dc2c58d29cbf9b26b2e4b500.tar.xz
nixpkgs-2b44d15be96a74b4dc2c58d29cbf9b26b2e4b500.tar.zst
nixpkgs-2b44d15be96a74b4dc2c58d29cbf9b26b2e4b500.zip
Merge pull request #65550 from petabyteboy/feature/update-multimc
multimc: 0.6.4 -> 0.6.6
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/games/multimc/default.nix29
1 files changed, 11 insertions, 18 deletions
diff --git a/pkgs/games/multimc/default.nix b/pkgs/games/multimc/default.nix
index d95532b438b..a95f88e59b2 100644
--- a/pkgs/games/multimc/default.nix
+++ b/pkgs/games/multimc/default.nix
@@ -3,13 +3,13 @@
 let
   libpath = with xorg; stdenv.lib.makeLibraryPath [ libX11 libXext libXcursor libXrandr libXxf86vm libpulseaudio ];
 in mkDerivation rec {
-  name = "multimc-${version}";
-  version = "0.6.4";
+  pname = "multimc";
+  version = "0.6.6";
   src = fetchFromGitHub {
     owner = "MultiMC";
     repo = "MultiMC5";
-    rev = "0.6.4";
-    sha256 = "0z9mhvfsq9m2cmi0dbrjjc51642r6ppdbb8932236gar5j7w3bc2";
+    rev = version;
+    sha256 = "0a9ciqi73ihw17qmp8l5134py5gjjrdnrk50syl2mllsc1iqj4kf";
     fetchSubmodules = true;
   };
   nativeBuildInputs = [ cmake file makeWrapper ];
@@ -17,25 +17,18 @@ in mkDerivation rec {
 
   enableParallelBuilding = true;
 
-  postInstall = ''
-    mkdir -p $out/share/{applications,pixmaps}
-    cp ../application/resources/multimc/scalable/multimc.svg $out/share/pixmaps
-    cp ../application/package/linux/multimc.desktop $out/share/applications
-    # xorg.xrandr needed for LWJGL [2.9.2, 3) https://github.com/LWJGL/lwjgl/issues/128
-    wrapProgram $out/bin/MultiMC --add-flags "-d \$HOME/.multimc/" --set GAME_LIBRARY_PATH /run/opengl-driver/lib:${libpath} --prefix PATH : ${jdk}/bin/:${xorg.xrandr}/bin/
+  cmakeFlags = [ "-DMultiMC_LAYOUT=lin-system" ];
 
-    # MultiMC's CMakeLists.txt puts libraries in bin directory, causing them to be set executable, causing nixpkgs' wrapQtAppsHook to wrap them
-    chmod -x $out/bin/*.so
+  postInstall = ''
+    install -Dm644 ../application/resources/multimc/scalable/multimc.svg $out/share/pixmaps/multimc.svg
+    install -Dm755 ../application/package/linux/multimc.desktop $out/share/applications/multimc.desktop
 
-    # As of https://github.com/MultiMC/MultiMC5/blob/7ea1d68244fdae1e7672fb84199ee71e168b31ca/application/package/linux/multimc.desktop,
-    # the desktop icon refers to `multimc`, but the executable actually gets
-    # installed as `MultiMC`. Create compatibility symlink to fix the desktop
-    # icon.
-    ln -sf $out/bin/MultiMC $out/bin/multimc
+    # xorg.xrandr needed for LWJGL [2.9.2, 3) https://github.com/LWJGL/lwjgl/issues/128
+    wrapProgram $out/bin/multimc --add-flags "-d \$HOME/.multimc/" --set GAME_LIBRARY_PATH /run/opengl-driver/lib:${libpath} --prefix PATH : ${jdk}/bin/:${xorg.xrandr}/bin/
   '';
 
   meta = with stdenv.lib; {
-    homepage = https://multimc.org/;
+    homepage = "https://multimc.org/";
     description = "A free, open source launcher for Minecraft";
     longDescription = ''
       Allows you to have multiple, separate instances of Minecraft (each with their own mods, texture packs, saves, etc) and helps you manage them and their associated options with a simple interface.