mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 07:13:23 +01:00
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:
parent
3b050791e4
commit
02c65bdac9
1 changed files with 4 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue