diff --git a/pkgs/applications/networking/browsers/chromium/common.nix b/pkgs/applications/networking/browsers/chromium/common.nix index 46dadd280c9a..2676104db3e0 100644 --- a/pkgs/applications/networking/browsers/chromium/common.nix +++ b/pkgs/applications/networking/browsers/chromium/common.nix @@ -27,6 +27,7 @@ , proprietaryCodecs ? true , cupsSupport ? false , pulseSupport ? false, pulseaudio ? null +, hiDPISupport ? false , source , plugins @@ -162,6 +163,7 @@ let linux_sandbox_chrome_path="${libExecPath}/${packageName}"; werror = ""; clang = false; + enable_hidpi = hiDPISupport; # Google API keys, see: # http://www.chromium.org/developers/how-tos/api-keys diff --git a/pkgs/applications/networking/browsers/chromium/default.nix b/pkgs/applications/networking/browsers/chromium/default.nix index 4dfdca882bc8..e02232162af1 100644 --- a/pkgs/applications/networking/browsers/chromium/default.nix +++ b/pkgs/applications/networking/browsers/chromium/default.nix @@ -12,6 +12,7 @@ , enablePepperPDF ? false , cupsSupport ? false , pulseSupport ? false +, hiDPISupport ? false }: let @@ -27,7 +28,7 @@ let mkChromiumDerivation = callPackage ./common.nix { inherit enableSELinux enableNaCl useOpenSSL gnomeSupport gnomeKeyringSupport proprietaryCodecs cupsSupport - pulseSupport; + pulseSupport hiDPISupport; }; browser = callPackage ./browser.nix { }; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index b0780615c921..f2a126827b53 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -8528,6 +8528,7 @@ let pulseSupport = config.pulseaudio or true; enablePepperFlash = config.chromium.enablePepperFlash or false; enablePepperPDF = config.chromium.enablePepperPDF or false; + hiDPISupport = config.chromium.hiDPISupport or false; }; chromiumBeta = lowPrio (chromium.override { channel = "beta"; });