From 6a02d658dde1fd5e9d9e84478796b6881b236578 Mon Sep 17 00:00:00 2001 From: Azat Bahawi Date: Wed, 14 Sep 2022 12:08:10 +0300 Subject: 2022-09-14 --- packages/ultimmc.nix | 64 ---------------------------------------------------- 1 file changed, 64 deletions(-) delete mode 100644 packages/ultimmc.nix (limited to 'packages') diff --git a/packages/ultimmc.nix b/packages/ultimmc.nix deleted file mode 100644 index 0259a7a..0000000 --- a/packages/ultimmc.nix +++ /dev/null @@ -1,64 +0,0 @@ -{ - cmake, - fetchFromGitHub, - jdk, - makeDesktopItem, - ninja, - qtbase, - stdenv, - wrapQtAppsHook, - zlib, -}: -stdenv.mkDerivation rec { - pname = "UltimMC"; - version = "git"; - - src = fetchFromGitHub { - owner = "UltimMC"; - repo = "Launcher"; - rev = "a522ec3ad4602de1f457a25bce98ef912a29d7d6"; - fetchSubmodules = true; - hash = "sha256-+UgBblyEx0cKH8UMBOPtjhQLv2YUKj91UokQWKCEPbY="; - }; - - nativeBuildInputs = [cmake jdk ninja wrapQtAppsHook]; - - buildInputs = [qtbase zlib]; - - postPatch = '' - substituteInPlace CMakeLists.txt \ - --replace 'LIBRARY_DEST_DIR "bin"' 'LIBRARY_DEST_DIR "lib"' \ - --replace 'JARS_DEST_DIR "bin/jars"' 'JARS_DEST_DIR "share/${pname}/jar"' - - substituteInPlace launcher/Application.cpp \ - --replace '"jars"' '"../share/${pname}/jar"'; - ''; - - desktopItem = makeDesktopItem { - name = pname; - exec = pname; - icon = pname; - desktopName = pname; - genericName = "Custom Minecraft launcher"; - categories = ["Game"]; - }; - - dontWrapQtApps = true; - - postInstall = '' - rm $out/${pname} - - install -Dm644 \ - ${desktopItem}/share/applications/${pname}.desktop \ - $out/share/applications/${pname}.desktop - install -Dm644 \ - $src/notsecrets/logo.svg \ - $out/share/icons/hicolor/scalable/apps/${pname}.svg - ''; - - postFixup = '' - wrapProgram $out/bin/${pname} \ - --add-flags "--dir \''${XDG_DATA_HOME:-~/.local/share}/${pname}" \ - "''${qtWrapperArgs[@]}" - ''; -} -- cgit 1.4.1