From 688826eade3720f2fda480259773171c238fdaef Mon Sep 17 00:00:00 2001 From: Michael Weiss Date: Sun, 23 Jul 2023 22:50:34 +0200 Subject: [PATCH] chromium: use optionalString instead of 'then ""' This is a backport of f3719756b550113c1acbbab00c89a56fb77256f2 for Chromium (optional but useful to keep the diff small/manageable). --- pkgs/applications/networking/browsers/chromium/default.nix | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pkgs/applications/networking/browsers/chromium/default.nix b/pkgs/applications/networking/browsers/chromium/default.nix index 3b4826930ec0..70b1de5253b8 100644 --- a/pkgs/applications/networking/browsers/chromium/default.nix +++ b/pkgs/applications/networking/browsers/chromium/default.nix @@ -135,9 +135,7 @@ let }; }; - suffix = if (channel == "stable" || channel == "ungoogled-chromium") - then "" - else "-" + channel; + suffix = lib.optionalString (channel != "stable" && channel != "ungoogled-chromium") ("-" + channel); sandboxExecutableName = chromium.browser.passthru.sandboxExecutableName;