summary refs log tree commit diff
path: root/pkgs/applications/networking/browsers
diff options
context:
space:
mode:
authorzimbatm <zimbatm@zimbatm.com>2016-12-27 16:21:56 +0000
committerzimbatm <zimbatm@zimbatm.com>2016-12-27 16:21:56 +0000
commit02c65bdac919fcb0cecc1a157744156ed39b9fc6 (patch)
treeaf72ae3d6716ec407689e73bf213dfc931c1da48 /pkgs/applications/networking/browsers
parent3b050791e47362cb4d6ce4da74bbaa360eaa8ff3 (diff)
downloadnixlib-02c65bdac919fcb0cecc1a157744156ed39b9fc6.tar
nixlib-02c65bdac919fcb0cecc1a157744156ed39b9fc6.tar.gz
nixlib-02c65bdac919fcb0cecc1a157744156ed39b9fc6.tar.bz2
nixlib-02c65bdac919fcb0cecc1a157744156ed39b9fc6.tar.lz
nixlib-02c65bdac919fcb0cecc1a157744156ed39b9fc6.tar.xz
nixlib-02c65bdac919fcb0cecc1a157744156ed39b9fc6.tar.zst
nixlib-02c65bdac919fcb0cecc1a157744156ed39b9fc6.zip
google-chrome: add channel name suffix
Updates would always select the unstable version otherwise. This was
copies from the chromium package.
Diffstat (limited to 'pkgs/applications/networking/browsers')
-rw-r--r--pkgs/applications/networking/browsers/google-chrome/default.nix5
1 files changed, 4 insertions, 1 deletions
diff --git a/pkgs/applications/networking/browsers/google-chrome/default.nix b/pkgs/applications/networking/browsers/google-chrome/default.nix
index 2863a5950175..938dbe09ebe6 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;