about summary refs log tree commit diff
path: root/pkgs/applications
diff options
context:
space:
mode:
authorArtturi <Artturin@artturin.com>2021-06-09 16:47:21 +0300
committerGitHub <noreply@github.com>2021-06-09 15:47:21 +0200
commitb22ea7f5d10373f754f4acfc0b2595e1abea7224 (patch)
treea7adb772a57f9a76a9280ade1fd72d51059dec7c /pkgs/applications
parentac6f6020736e749941632565223c12b16871b40b (diff)
discord: symlink Discord to discord to be consistent (#126254)
with distros such as arch
Diffstat (limited to 'pkgs/applications')
-rw-r--r--pkgs/applications/networking/instant-messengers/discord/base.nix2
1 files changed, 2 insertions, 0 deletions
diff --git a/pkgs/applications/networking/instant-messengers/discord/base.nix b/pkgs/applications/networking/instant-messengers/discord/base.nix
index 110d3ffb00ee7..a155737499e87 100644
--- a/pkgs/applications/networking/instant-messengers/discord/base.nix
+++ b/pkgs/applications/networking/instant-messengers/discord/base.nix
@@ -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/