From 5a1f6683338cb489a8955078e3a65e55728a24b2 Mon Sep 17 00:00:00 2001 From: Wolfgang Walther Date: Sun, 20 Jul 2025 13:41:21 +0200 Subject: [PATCH] dropbox: avoid manual assert This package already sets `meta.platforms` accordingly, so will fail to evaluate on other platforms anyway. Relying on `meta.platforms` has the advantage that CI doesn't need to work around these eval failures in hacky ways. --- pkgs/applications/networking/dropbox/default.nix | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/pkgs/applications/networking/dropbox/default.nix b/pkgs/applications/networking/dropbox/default.nix index e912604623cb..6795540c603c 100644 --- a/pkgs/applications/networking/dropbox/default.nix +++ b/pkgs/applications/networking/dropbox/default.nix @@ -6,15 +6,6 @@ makeDesktopItem, }: -let - platforms = [ - "i686-linux" - "x86_64-linux" - ]; -in - -assert lib.elem stdenv.hostPlatform.system platforms; - # Dropbox client to bootstrap installation. # The client is self-updating, so the actual version may be newer. let @@ -23,7 +14,7 @@ let x86_64-linux = "217.4.4417"; i686-linux = "206.3.6386"; } - .${stdenv.hostPlatform.system}; + .${stdenv.hostPlatform.system} or ""; arch = {