Skip to content
This repository was archived by the owner on Apr 12, 2021. It is now read-only.
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs-channels
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: d004311ba3e8
Choose a base ref
...
head repository: NixOS/nixpkgs-channels
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: b3e718378d16
Choose a head ref
  • 2 commits
  • 1 file changed
  • 1 contributor

Commits on Dec 2, 2018

  1. minecraft: Fix versions <1.13

    (cherry picked from commit 0d2355d)
    infinisil committed Dec 2, 2018
    Copy the full SHA
    8fc7a2d View commit details
  2. Merge pull request #51374 from Infinisil/backport/fix/minecraft

    [18.09] minecraft: Fix versions <1.13
    infinisil authored Dec 2, 2018
    Copy the full SHA
    b3e7183 View commit details
Showing with 7 additions and 2 deletions.
  1. +7 −2 pkgs/games/minecraft/default.nix
9 changes: 7 additions & 2 deletions pkgs/games/minecraft/default.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{ stdenv, fetchurl, makeDesktopItem, makeWrapper
, jdk, jre, libpulseaudio
, jdk, jre, libpulseaudio, libXxf86vm
}:

let
@@ -13,6 +13,11 @@ let
categories = "Game;";
};

libPath = stdenv.lib.makeLibraryPath [
libpulseaudio
libXxf86vm # Needed only for versions <1.13
];

in stdenv.mkDerivation {
name = "minecraft-2015-07-24";

@@ -30,7 +35,7 @@ in stdenv.mkDerivation {
makeWrapper ${jre}/bin/java $out/bin/minecraft \
--add-flags "-jar $out/share/minecraft/minecraft.jar" \
--suffix LD_LIBRARY_PATH : ${stdenv.lib.makeLibraryPath [ libpulseaudio ]}
--suffix LD_LIBRARY_PATH : ${libPath}
cp $src $out/share/minecraft/minecraft.jar
cp -r ${desktopItem}/share/applications $out/share