forked from mirrors/nixpkgs
chromium: make gcc8 build available via buildWithGcc flag
This commit is contained in:
parent
7eea24db5d
commit
b70ab5c405
|
@ -31,12 +31,13 @@
|
||||||
, upstream-info
|
, upstream-info
|
||||||
}:
|
}:
|
||||||
|
|
||||||
|
assert stdenv.cc.isClang -> (stdenv == llvmPackages.stdenv);
|
||||||
|
|
||||||
buildFun:
|
buildFun:
|
||||||
|
|
||||||
with stdenv.lib;
|
with stdenv.lib;
|
||||||
|
|
||||||
# see http://www.linuxfromscratch.org/blfs/view/cvs/xsoft/chromium.html
|
# see http://www.linuxfromscratch.org/blfs/view/cvs/xsoft/chromium.html
|
||||||
|
|
||||||
let
|
let
|
||||||
# The additional attributes for creating derivations based on the chromium
|
# The additional attributes for creating derivations based on the chromium
|
||||||
# source tree.
|
# source tree.
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
{ newScope, stdenv, llvmPackages, makeWrapper, makeDesktopItem, ed
|
{ newScope, makeWrapper, makeDesktopItem, ed
|
||||||
, glib, gtk3, gnome3, gsettings-desktop-schemas
|
, glib, gtk3, gnome3, gsettings-desktop-schemas
|
||||||
|
, stdenv, llvmPackages_7, gcc8Stdenv
|
||||||
|
|
||||||
# package customization
|
# package customization
|
||||||
, channel ? "stable"
|
, channel ? "stable"
|
||||||
|
@ -9,17 +10,16 @@
|
||||||
, proprietaryCodecs ? true
|
, proprietaryCodecs ? true
|
||||||
, enablePepperFlash ? false
|
, enablePepperFlash ? false
|
||||||
, enableWideVine ? false
|
, enableWideVine ? false
|
||||||
|
, buildWithGcc ? false
|
||||||
, cupsSupport ? true
|
, cupsSupport ? true
|
||||||
, pulseSupport ? false
|
, pulseSupport ? false
|
||||||
, commandLineArgs ? ""
|
, commandLineArgs ? ""
|
||||||
}:
|
}:
|
||||||
|
|
||||||
assert stdenv.cc.isClang -> (stdenv == llvmPackages.stdenv);
|
|
||||||
let
|
let
|
||||||
callPackage = newScope chromium;
|
callPackage = newScope chromium;
|
||||||
|
|
||||||
chromium = {
|
chromium = {
|
||||||
inherit stdenv llvmPackages;
|
|
||||||
|
|
||||||
upstream-info = (callPackage ./update.nix {}).getChannel channel;
|
upstream-info = (callPackage ./update.nix {}).getChannel channel;
|
||||||
|
|
||||||
|
@ -34,7 +34,12 @@ let
|
||||||
plugins = callPackage ./plugins.nix {
|
plugins = callPackage ./plugins.nix {
|
||||||
inherit enablePepperFlash enableWideVine;
|
inherit enablePepperFlash enableWideVine;
|
||||||
};
|
};
|
||||||
};
|
} // (if buildWithGcc then {
|
||||||
|
stdenv = gcc8Stdenv;
|
||||||
|
} else {
|
||||||
|
llvmPackages = llvmPackages_7;
|
||||||
|
stdenv = llvmPackages_7.stdenv;
|
||||||
|
});
|
||||||
|
|
||||||
desktopItem = makeDesktopItem {
|
desktopItem = makeDesktopItem {
|
||||||
name = "chromium-browser";
|
name = "chromium-browser";
|
||||||
|
|
|
@ -16021,14 +16021,8 @@ with pkgs;
|
||||||
pulseSupport = config.pulseaudio or true;
|
pulseSupport = config.pulseaudio or true;
|
||||||
enablePepperFlash = config.chromium.enablePepperFlash or false;
|
enablePepperFlash = config.chromium.enablePepperFlash or false;
|
||||||
enableWideVine = config.chromium.enableWideVine or false;
|
enableWideVine = config.chromium.enableWideVine or false;
|
||||||
gnome = gnome2;
|
buildWithGcc = config.chromium.buildWithGcc or stdenv.isAarch64;
|
||||||
} // (if stdenv.isAarch64 then {
|
});
|
||||||
stdenv = gcc8Stdenv;
|
|
||||||
} else {
|
|
||||||
llvmPackages = llvmPackages_7;
|
|
||||||
stdenv = llvmPackages_7.stdenv;
|
|
||||||
})
|
|
||||||
);
|
|
||||||
|
|
||||||
chronos = callPackage ../applications/networking/cluster/chronos { };
|
chronos = callPackage ../applications/networking/cluster/chronos { };
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue