discord: symlink Discord to discord to be consistent

with distros such as arch

(cherry picked from commit f0adbd1d9f71473fd21b245b867c3235a3b2846a)
This commit is contained in:
Artturin 2021-06-08 22:24:27 +03:00 committed by Jonathan Ringer
parent c41fdc54ac
commit 6a1885ca6d
1 changed files with 2 additions and 0 deletions

View File

@ -54,6 +54,8 @@ in stdenv.mkDerivation rec {
--prefix LD_LIBRARY_PATH : ${libPath}:$out/opt/${binaryName}
ln -s $out/opt/${binaryName}/${binaryName} $out/bin/
# Without || true the install would fail on case-insensitive filesystems
ln -s $out/opt/${binaryName}/${binaryName} $out/bin/${lib.strings.toLower binaryName} || true
ln -s $out/opt/${binaryName}/discord.png $out/share/pixmaps/${pname}.png
ln -s "${desktopItem}/share/applications" $out/share/