1ae328ba86
The name is a bit unfortunate, so it would make sense to rename "sources.nix" into something else. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
34 lines
749 B
Nix
34 lines
749 B
Nix
{ newScope
|
|
|
|
# package customization
|
|
, channel ? "stable"
|
|
, enableSELinux ? false
|
|
, enableNaCl ? false
|
|
, useOpenSSL ? false
|
|
, gnomeSupport ? false
|
|
, gnomeKeyringSupport ? false
|
|
, proprietaryCodecs ? true
|
|
, enablePepperFlash ? false
|
|
, enablePepperPDF ? false
|
|
, cupsSupport ? false
|
|
, pulseSupport ? false
|
|
}:
|
|
|
|
let
|
|
callPackage = newScope chromium;
|
|
|
|
chromium = {
|
|
source = callPackage ./source.nix {
|
|
inherit channel;
|
|
# XXX: common config
|
|
inherit useOpenSSL;
|
|
};
|
|
|
|
browser = callPackage ./browser.nix {
|
|
inherit enableSELinux enableNaCl useOpenSSL gnomeSupport
|
|
gnomeKeyringSupport proprietaryCodecs enablePepperFlash
|
|
enablePepperPDF cupsSupport pulseSupport;
|
|
};
|
|
};
|
|
|
|
in chromium.browser
|