diff options
author | zimbatm <zimbatm@zimbatm.com> | 2016-12-27 16:21:56 +0000 |
---|---|---|
committer | zimbatm <zimbatm@zimbatm.com> | 2016-12-27 16:21:56 +0000 |
commit | 02c65bdac919fcb0cecc1a157744156ed39b9fc6 (patch) | |
tree | af72ae3d6716ec407689e73bf213dfc931c1da48 /pkgs/applications/networking/browsers | |
parent | 3b050791e47362cb4d6ce4da74bbaa360eaa8ff3 (diff) | |
download | nixlib-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.nix | 5 |
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; |