teamspeak_client: install to opt/ subdirectory

This is not a library.

This actually matters somewhat because lib/ is installed into the system-wide
path on NixOS for whatever reason.
This commit is contained in:
Atemu
2024-11-07 07:44:53 +01:00
parent 3830a3dbf6
commit 2568cfa348

View File

@@ -109,14 +109,14 @@ stdenv.mkDerivation rec {
installPhase = ''
runHook preInstall
mkdir -p $out/lib/teamspeak
mv * $out/lib/teamspeak/
mkdir -p $out/opt/teamspeak
mv * $out/opt/teamspeak/
# Grab the desktop icon from the plugin sdk
install ${pluginsdk}/doc/_static/logo.png -D $out/share/icons/hicolor/64x64/apps/teamspeak.png
mkdir -p $out/bin/
ln -s $out/lib/teamspeak/ts3client $out/bin/ts3client
ln -s $out/opt/teamspeak/ts3client $out/bin/ts3client
runHook postInstall
'';