2014-03-19 11:21:10 +00:00
|
|
|
{ newScope
|
2012-12-03 16:55:09 +00:00
|
|
|
|
2012-12-03 17:23:49 +00:00
|
|
|
# package customization
|
2012-12-03 16:55:09 +00:00
|
|
|
, channel ? "stable"
|
2014-03-19 11:21:10 +00:00
|
|
|
, enableSELinux ? false
|
2012-12-03 17:23:49 +00:00
|
|
|
, enableNaCl ? false
|
2014-03-19 11:21:10 +00:00
|
|
|
, useOpenSSL ? false
|
|
|
|
, gnomeSupport ? false
|
|
|
|
, gnomeKeyringSupport ? false
|
2012-12-03 17:23:49 +00:00
|
|
|
, proprietaryCodecs ? true
|
2014-03-19 10:32:39 +00:00
|
|
|
, enablePepperFlash ? false
|
|
|
|
, enablePepperPDF ? false
|
2012-12-03 17:23:49 +00:00
|
|
|
, cupsSupport ? false
|
2014-03-19 11:21:10 +00:00
|
|
|
, pulseSupport ? false
|
chromium: Minimal build (no install) from source.
This only gets chromium to build so far, installation is missing by upstream, so
we need to manually copy the corresponding files. And I guess with nix, we also
need to patch a few paths on installation.
Another issue is that at the moment, a lot of dependencies are used from the
source tree, rather than from the system.
Also, it would be nice to build using LLVM, as it really speeds up compilation a
*LOT* and also has the side effect of resulting in smaller binaries.
Working unit tests would be nice, too. Unfortunately they're quite heavyweight
and take hours to run, so I guess "someday" would be the most appropriate time
to integrate.
Further todo's:
- Allow to disable GConf, GIO and CUPS.
- Option to disable the sandbox (for whatever reason the user might have).
- Integrate gold binutils.
- Pulseaudio support.
- Clearly separate Linux specific stuff.
2012-06-12 09:19:22 +01:00
|
|
|
}:
|
2009-10-30 08:45:58 +00:00
|
|
|
|
chromium: Minimal build (no install) from source.
This only gets chromium to build so far, installation is missing by upstream, so
we need to manually copy the corresponding files. And I guess with nix, we also
need to patch a few paths on installation.
Another issue is that at the moment, a lot of dependencies are used from the
source tree, rather than from the system.
Also, it would be nice to build using LLVM, as it really speeds up compilation a
*LOT* and also has the side effect of resulting in smaller binaries.
Working unit tests would be nice, too. Unfortunately they're quite heavyweight
and take hours to run, so I guess "someday" would be the most appropriate time
to integrate.
Further todo's:
- Allow to disable GConf, GIO and CUPS.
- Option to disable the sandbox (for whatever reason the user might have).
- Integrate gold binutils.
- Pulseaudio support.
- Clearly separate Linux specific stuff.
2012-06-12 09:19:22 +01:00
|
|
|
let
|
2014-03-19 11:21:10 +00:00
|
|
|
callPackage = newScope chromium;
|
2014-03-19 10:32:39 +00:00
|
|
|
|
2014-03-19 11:21:10 +00:00
|
|
|
chromium = {
|
|
|
|
browser = callPackage ./browser.nix {
|
|
|
|
inherit channel enableSELinux enableNaCl useOpenSSL gnomeSupport
|
|
|
|
gnomeKeyringSupport proprietaryCodecs enablePepperFlash
|
|
|
|
enablePepperPDF cupsSupport pulseSupport;
|
2014-03-19 10:32:39 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2014-03-19 11:21:10 +00:00
|
|
|
in chromium.browser
|