git.iko.soy/typeable/nixpkgs
on master help sign in
google-chrome: add channel name suffix

Updates would always select the unstable version otherwise. This was copies from the chromium package.

commit02c65bdac919fcb0cecc1a157744156ed39b9fc6 authorzimbatm <zimbatm@zimbatm.com> dateTue 27 Dec 2016, 16:21 (10 years ago) parent3b05079
1 file changed+4−1
pkgs/applications/networking/browsers/google-chrome/default.nix+4−1
pkgs/applications/networking/browsers/google-chrome/default.nix+4−1
@@ -51,10 +51,13 @@ let
5151 flac harfbuzz icu libpng opusWithCustomModes snappy speechd
5252 bzip2 libcap
5353 ] ++ optional pulseSupport libpulseaudio;
54+
55+ suffix = if channel != "stable" then "-" + channel else "";
56+
5457in stdenv.mkDerivation rec {
5558 inherit version;
5659
57− name = "google-chrome-${version}";
60+ name = "google-chrome${suffix}-${version}";
5861
5962 src = binary;
6063