google-chrome: add channel name suffix

Updates would always select the unstable version otherwise. This was
copies from the chromium package.
This commit is contained in:
zimbatm 2016-12-27 16:21:56 +00:00
parent 3b050791e4
commit 02c65bdac9

View file

@ -51,10 +51,13 @@ let
flac harfbuzz icu libpng opusWithCustomModes snappy speechd
bzip2 libcap
] ++ optional pulseSupport libpulseaudio;
suffix = if channel != "stable" then "-" + channel else "";
in stdenv.mkDerivation rec {
inherit version;
name = "google-chrome-${version}";
name = "google-chrome${suffix}-${version}";
src = binary;