summary refs log tree commit diff
path: root/pkgs/applications/networking/instant-messengers/telegram/tdesktop/default.nix
diff options
context:
space:
mode:
authorMichael Weiss <dev.primeos@gmail.com>2020-10-16 15:49:25 +0200
committerMichael Weiss <dev.primeos@gmail.com>2020-10-16 16:15:22 +0200
commit7ca4469122ec00a16821b60131ef9e41fa0f6872 (patch)
tree7653d22a2982e1e8b719c6e055fc528528eb78bb /pkgs/applications/networking/instant-messengers/telegram/tdesktop/default.nix
parentbb99a0d9a8f764996b0b719f842ea4af44591d17 (diff)
downloadnixpkgs-7ca4469122ec00a16821b60131ef9e41fa0f6872.tar
nixpkgs-7ca4469122ec00a16821b60131ef9e41fa0f6872.tar.gz
nixpkgs-7ca4469122ec00a16821b60131ef9e41fa0f6872.tar.bz2
nixpkgs-7ca4469122ec00a16821b60131ef9e41fa0f6872.tar.lz
nixpkgs-7ca4469122ec00a16821b60131ef9e41fa0f6872.tar.xz
nixpkgs-7ca4469122ec00a16821b60131ef9e41fa0f6872.tar.zst
nixpkgs-7ca4469122ec00a16821b60131ef9e41fa0f6872.zip
tdesktop: Drop unused CMake variables and passthru tg_owt
Before this change:
> CMake Warning:
>   Manually-specified variables were not used by the project:
>
>     BUILD_TESTING
>     CMAKE_EXPORT_NO_PACKAGE_REGISTRY
>     CMAKE_POLICY_DEFAULT_CMP0025
>     DESKTOP_APP_USE_PACKAGED_GSL
>     DESKTOP_APP_USE_PACKAGED_RLOTTIE
>     DESKTOP_APP_USE_PACKAGED_VARIANT
>     TDESKTOP_DISABLE_REGISTER_CUSTOM_SCHEME
>     TDESKTOP_USE_PACKAGED_TGVOIP
Diffstat (limited to 'pkgs/applications/networking/instant-messengers/telegram/tdesktop/default.nix')
-rw-r--r--pkgs/applications/networking/instant-messengers/telegram/tdesktop/default.nix9
1 files changed, 4 insertions, 5 deletions
diff --git a/pkgs/applications/networking/instant-messengers/telegram/tdesktop/default.nix b/pkgs/applications/networking/instant-messengers/telegram/tdesktop/default.nix
index fff4400e0a4..a1a1103b4fd 100644
--- a/pkgs/applications/networking/instant-messengers/telegram/tdesktop/default.nix
+++ b/pkgs/applications/networking/instant-messengers/telegram/tdesktop/default.nix
@@ -59,11 +59,6 @@ in mkDerivation rec {
     # We're allowed to used the API ID of the Snap package:
     "-DTDESKTOP_API_ID=611335"
     "-DTDESKTOP_API_HASH=d524b414d21f4d37f08684c1df41ac9c"
-    "-DDESKTOP_APP_USE_PACKAGED_RLOTTIE=OFF"
-    "-DDESKTOP_APP_USE_PACKAGED_VARIANT=OFF"
-    "-DDESKTOP_APP_USE_PACKAGED_GSL=OFF"
-    "-DTDESKTOP_DISABLE_REGISTER_CUSTOM_SCHEME=ON"
-    "-DTDESKTOP_USE_PACKAGED_TGVOIP=OFF"
     #"-DDESKTOP_APP_SPECIAL_TARGET=\"\"" # TODO: Error when set to "": Bad special target '""'
     "-DTDESKTOP_LAUNCHER_BASENAME=telegramdesktop" # Note: This is the default
   ];
@@ -100,6 +95,10 @@ in mkDerivation rec {
       -e "s,'XDG-RUNTIME-DIR',\"\''${XDG_RUNTIME_DIR:-/run/user/\$(id --user)}\","
   '';
 
+  passthru = {
+    inherit tg_owt;
+  };
+
   meta = {
     description = "Telegram Desktop messaging app";
     longDescription = ''