I need to find libQt5Xml.so.5 to run my application.
This would imply that the lib is bundled in libsForQt5.qt5.qtbase.out
But when ever I import libsForQt5 in to my config, it never can never find it.
{ lib
, stdenv
, fetchurl
, makeDesktopItem
, makeWrapper
, libsForQt5
}:
let
version = "1.6.1";
src = fetchurl {
url = "https://files.multimc.org/downloads/mmc-stable-lin64.tar.gz";
sha256 = "BYV3jD6ejNUdMkr2xpRpQ582qIVx74O+RK4B/P790lE=";
};
LAUNCHER_NAME = "MultiMC";
LAUNCHER_DIR = "$out/MultiMC";
#EXEC = "${LAUNCHER_DIR}/bin/${LAUNCHER_NAME} -d ${LAUNCHER_DIR}";
desktopItem = makeDesktopItem {
name = "MultiMC";
#exec = EXEC;
icon = "";
comment = "A modular Minecraft launcher";
desktopName = "MultiMC";
genericName = "Minecraft Launcher";
categories = [ "Game" ];
};
in stdenv.mkDerivation {
pname = "MultiMC";
version = version;
src = src;
nativeBuildInputs = [
libsForQt5.qt5.wrapQtAppsHook
makeWrapper
];
buildInputs = [
libsForQt5.qt5.qtbase
libsForQt5.qt5.qtdeclarative
libsForQt5.qt5.qtmultimedia
];
dontWrapQtApps = true;
unpackPhase = ''
mkdir -p $out
tar -xzf $src -C $out
chmod +x $out/MultiMC/bin/MultiMC
'';
installPhase = ''
runHook preInstall
mkdir -p $out/share/applications
cp ${desktopItem}/share/applications/*.desktop $out/share/applications/
runHook postInstall
'';
preFixup = ''
wrapQtApp "$out/MultiMC/bin/MultiMC"
'';
meta = with lib; {
description = "MultiMC: A custom launcher for Minecraft";
homepage = "https://multimc.org/";
license = licenses.asl20;
maintainers = with lib.maintainers; [ ];
platforms = platforms.linux;
};
}
And when I explore the package, its not available.
Anyone have any ideas?