Merge pull request #34267 from catern/chromesimple
google-chrome: remove "with" usage to simplify the expr
This commit is contained in:
commit
70a9162a77
|
@ -38,13 +38,12 @@
|
||||||
|
|
||||||
with stdenv.lib;
|
with stdenv.lib;
|
||||||
|
|
||||||
with chromium.upstream-info;
|
|
||||||
|
|
||||||
let
|
let
|
||||||
opusWithCustomModes = libopus.override {
|
opusWithCustomModes = libopus.override {
|
||||||
withCustomModes = true;
|
withCustomModes = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
version = chromium.upstream-info.version;
|
||||||
gtk = if (versionAtLeast version "59.0.0.0") then gtk3 else gtk2;
|
gtk = if (versionAtLeast version "59.0.0.0") then gtk3 else gtk2;
|
||||||
gnome = if (versionAtLeast version "59.0.0.0") then gnome3 else gnome2;
|
gnome = if (versionAtLeast version "59.0.0.0") then gnome3 else gnome2;
|
||||||
|
|
||||||
|
@ -68,7 +67,7 @@ in stdenv.mkDerivation rec {
|
||||||
|
|
||||||
name = "google-chrome${suffix}-${version}";
|
name = "google-chrome${suffix}-${version}";
|
||||||
|
|
||||||
src = binary;
|
src = chromium.upstream-info.binary;
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
patchelf
|
patchelf
|
||||||
|
|
Loading…
Reference in New Issue