From abc69428ed3db1a58634cbcec24f9037b43145a0 Mon Sep 17 00:00:00 2001 From: Raghuram Subramani Date: Thu, 8 Aug 2024 15:22:45 +0530 Subject: update --- packages/tlauncher.nix | 86 -------------------------------------------------- 1 file changed, 86 deletions(-) delete mode 100644 packages/tlauncher.nix (limited to 'packages/tlauncher.nix') diff --git a/packages/tlauncher.nix b/packages/tlauncher.nix deleted file mode 100644 index 2c464c8..0000000 --- a/packages/tlauncher.nix +++ /dev/null @@ -1,86 +0,0 @@ -{ lib -, stdenv -, openjdk8 -, buildFHSUserEnv -, fetchzip -, fetchurl -, copyDesktopItems -}: - -let - version = "2.895"; - 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-6p1rxEpGpvjBCd+TCsb8ZTRnvqL6GiEv+V7ZI4+pjJk="; - 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 - ]; - }; -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 ]; - - 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; - }; -} -- cgit v1.2.3