optifine: init at 1.16.5_HD_U_G8

This commit is contained in:
IvarWithoutBones 2021-07-09 01:55:53 +02:00
parent 4d9ab19f8e
commit 558d864f64
2 changed files with 41 additions and 0 deletions

View file

@ -0,0 +1,39 @@
{ lib
, stdenv
, fetchurl
, makeWrapper
, jre }:
stdenv.mkDerivation rec {
pname = "optifine";
version = "1.16.5_HD_U_G8";
src = fetchurl {
url = "https://optifine.net/download?f=OptiFine_${version}.jar";
sha256 = "0ks91d6n4vkgb5ykdrc67br2c69nqjr0xhp7rrkybg24xn8bqxiw";
};
dontUnpack = true;
nativeBuildInputs = [ jre makeWrapper ];
installPhase = ''
mkdir -p $out/{bin,lib/optifine}
cp $src $out/lib/optifine/optifine.jar
makeWrapper ${jre}/bin/java $out/bin/optifine \
--add-flags "-jar $out/lib/optifine/optifine.jar"
'';
meta = with lib; {
homepage = "https://optifine.net/";
description = "A Minecraft optimization mod";
longDescription = ''
OptiFine is a Minecraft optimization mod.
It allows Minecraft to run faster and look better with full support for HD textures and many configuration options.
'';
license = licenses.unfree;
maintainers = [ maintainers.ivar ];
platforms = platforms.unix;
};
}

View file

@ -7636,6 +7636,8 @@ in
openvswitch-lts = callPackage ../os-specific/linux/openvswitch/lts.nix { };
optifine = callPackage ../tools/games/minecraft/optifine { };
optipng = callPackage ../tools/graphics/optipng {
libpng = libpng12;
};