20 textToSpeechSupport ? stdenv.hostPlatform.isLinux,
25 # Copied from the `prismlauncher` package
38 (lib.getLib stdenv.cc.cc)
42 ] ++ lib.optional textToSpeechSupport flite;
44 python3Packages.buildPythonApplication rec {
49 disabled = python3Packages.pythonOlder "3.8";
51 src = fetchFromGitHub {
52 owner = "mindstorm38";
54 rev = "refs/tags/v${version}";
55 hash = "sha256-JDosvjbpoDC+xJ15ejcMJd+jA09RLR+whVZblMu+ljk=";
59 # Use the jre package provided by nixpkgs by default
60 ./use-builtin-java.patch
63 nativeBuildInputs = [ installShellFiles ];
65 build-system = [ python3Packages.poetry-core ];
67 dependencies = [ python3Packages.certifi ];
69 # Note: Tests use networking, so we don't run them
72 installShellCompletion --cmd portablemc \
73 --bash <($out/bin/portablemc show completion bash) \
74 --zsh <($out/bin/portablemc show completion zsh)
79 --prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath runtimeLibs}
80 --prefix PATH : ${lib.makeBinPath [ jre ]}
85 homepage = "https://github.com/mindstorm38/portablemc";
86 description = "Fast, reliable and cross-platform command-line Minecraft launcher and API for developers";
88 A fast, reliable and cross-platform command-line Minecraft launcher and API for developers.
89 Including fast and easy installation of common mod loaders such as Fabric, Forge, NeoForge and Quilt.
90 This launcher is compatible with the standard Minecraft directories.
92 changelog = "https://github.com/mindstorm38/portablemc/releases/tag/${lib.removePrefix "refs/tags/" src.rev}";
93 license = lib.licenses.gpl3Only;
94 mainProgram = "portablemc";
95 maintainers = with lib.maintainers; [ tomasajt ];