about summary refs log tree commit diff
path: root/packages/ultimmc.nix
diff options
context:
space:
mode:
authorAzat Bahawi <azat@bahawi.net>2022-09-14 12:08:10 +0300
committerAzat Bahawi <azat@bahawi.net>2022-09-14 12:08:10 +0300
commit6a02d658dde1fd5e9d9e84478796b6881b236578 (patch)
tree02b5e0372998ca089b22e2d78bfa499b736ee13e /packages/ultimmc.nix
parent2022-09-13 (diff)
2022-09-14
Diffstat (limited to '')
-rw-r--r--packages/ultimmc.nix64
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[@]}"
-  '';
-}

Consider giving Nix/NixOS a try! <3