Merge pull request #155504 from SuperSandro2000/tlauncher

This commit is contained in:
Sandro 2022-01-18 23:55:11 +01:00 committed by GitHub
commit bbe8195d8f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 1 additions and 102 deletions

View File

@ -1,100 +0,0 @@
{ lib
, stdenv
, openjdk8
, buildFHSUserEnv
, fetchzip
, fetchurl
, copyDesktopItems
, makeDesktopItem
}:
let
version = "2.839";
src = stdenv.mkDerivation {
pname = "tlauncher";
inherit version;
src = fetchzip {
name = "tlauncher.zip";
url = "https://dl2.tlauncher.org/f.php?f=files%2FTLauncher-${version}.zip";
sha256 = "sha256-KphpNuTucpuJhXspKxqDyYQN6vbpY0XCB3GAd5YCGbc=";
stripRoot = false;
};
installPhase = ''
cp $src/*.jar $out
'';
};
fhs = buildFHSUserEnv {
name = "tlauncher";
runScript = ''
${openjdk8}/bin/java -jar "${src}" "$@"
'';
targetPkgs = pkgs: with pkgs; [
alsa-lib
cpio
cups
file
fontconfig
freetype
giflib
glib
gnome2.GConf
gnome2.gnome_vfs
gtk2
libjpeg
libGL
openjdk8-bootstrap
perl
which
xorg.libICE
xorg.libX11
xorg.libXcursor
xorg.libXext
xorg.libXi
xorg.libXinerama
xorg.libXrandr
xorg.xrandr
xorg.libXrender
xorg.libXt
xorg.libXtst
xorg.libXtst
xorg.libXxf86vm
zip
zlib
];
};
desktopItem = makeDesktopItem {
name = "tlauncher";
exec = "tlauncher";
icon = fetchurl {
url = "https://styles.redditmedia.com/t5_2o8oax/styles/communityIcon_gu5r5v8eaiq51.png";
sha256 = "sha256-ma8zxaUxdAw5VYfOK8i8s1kjwMgs80Eomq43Cb0HZWw=";
};
comment = "Minecraft launcher";
desktopName = "TLauncher";
categories = "Game;";
};
in stdenv.mkDerivation {
pname = "tlauncher-wrapper";
inherit version;
dontUnpack = true;
installPhase = ''
runHook preInstall
mkdir $out/{bin,share/applications} -p
install ${fhs}/bin/tlauncher $out/bin
runHook postInstall
'';
nativeBuildInputs = [ copyDesktopItems ];
desktopItems = [ desktopItem ];
meta = with lib; {
description = "Minecraft launcher that already deal with forge, optifine and mods";
homepage = "https://tlauncher.org/";
maintainers = with maintainers; [ lucasew ];
license = licenses.unfree;
platforms = openjdk8.meta.platforms;
};
}

View File

@ -782,6 +782,7 @@ mapAliases ({
pgtap = postgresqlPackages.pgtap;
plv8 = postgresqlPackages.plv8;
timescaledb = postgresqlPackages.timescaledb;
tlauncher = throw "tlauncher has been removed because there questionable practices and legality concerns";
tsearch_extras = postgresqlPackages.tsearch_extras;
cstore_fdw = postgresqlPackages.cstore_fdw;
pg_hll = postgresqlPackages.pg_hll;

View File

@ -30937,8 +30937,6 @@ with pkgs;
portmod = callPackage ../games/portmod { };
tlauncher = callPackage ../games/tlauncher { };
tr-patcher = callPackage ../games/tr-patcher { };
tes3cmd = callPackage ../games/tes3cmd { };