Set package to unfree when widevine is enabled.

This commit is contained in:
Julien Langlois 2019-09-05 17:27:04 -04:00
parent aeeb67bfcb
commit c28eb26100
No known key found for this signature in database
GPG key ID: BB220B0A40F7F862
2 changed files with 3 additions and 3 deletions

View file

@ -1,4 +1,4 @@
{ stdenv, mkChromiumDerivation, channel }:
{ stdenv, mkChromiumDerivation, channel, enableWideVine }:
with stdenv.lib;
@ -62,7 +62,7 @@ mkChromiumDerivation (base: rec {
description = "An open source web browser from Google";
homepage = http://www.chromium.org/;
maintainers = with maintainers; [ bendlas ivan ];
license = licenses.bsd3;
license = if enableWideVine then licenses.unfree else licenses.bsd3;
platforms = platforms.linux;
hydraPlatforms = if channel == "stable" then ["aarch64-linux" "x86_64-linux"] else [];
timeout = 172800; # 48 hours

View file

@ -39,7 +39,7 @@ in let
useVaapi;
};
browser = callPackage ./browser.nix { inherit channel; };
browser = callPackage ./browser.nix { inherit channel enableWideVine; };
plugins = callPackage ./plugins.nix {
inherit enablePepperFlash;