mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-02 04:50:21 +00:00
chromium: use optionalString instead of 'then ""'
This is a backport of f3719756b5 for
Chromium (optional but useful to keep the diff small/manageable).
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user