From 02c65bdac919fcb0cecc1a157744156ed39b9fc6 Mon Sep 17 00:00:00 2001 From: zimbatm Date: Tue, 27 Dec 2016 16:21:56 +0000 Subject: [PATCH] google-chrome: add channel name suffix Updates would always select the unstable version otherwise. This was copies from the chromium package. --- .../networking/browsers/google-chrome/default.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkgs/applications/networking/browsers/google-chrome/default.nix b/pkgs/applications/networking/browsers/google-chrome/default.nix index 2863a595017..938dbe09ebe 100644 --- a/pkgs/applications/networking/browsers/google-chrome/default.nix +++ b/pkgs/applications/networking/browsers/google-chrome/default.nix @@ -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;