diff options
Diffstat (limited to 'packages/ultimmc.nix')
-rw-r--r-- | packages/ultimmc.nix | 64 |
1 files changed, 0 insertions, 64 deletions
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[@]}" - ''; -} |