diff --git a/pkgs/data/fonts/joypixels/default.nix b/pkgs/data/fonts/joypixels/default.nix index eb9bc5cf910..2b39595f0e1 100644 --- a/pkgs/data/fonts/joypixels/default.nix +++ b/pkgs/data/fonts/joypixels/default.nix @@ -1,4 +1,6 @@ -{ stdenv, fetchurl, acceptLicense ? false }: +{ stdenv, fetchurl, config +, acceptLicense ? config.joypixels.acceptLicense or false +}: let inherit (stdenv.hostPlatform) system; @@ -40,8 +42,9 @@ assert !acceptLicense -> throw '' - ${joypixels-free-license.fullName} [1] - ${joypixels-license-appendix.fullName} [2] - You can express acceptance by overriding acceptLicense: - (joypixels.override { acceptLicense = true; }) + You can express acceptance by setting acceptLicense to true in your + configuration (configuration.nix or config.nix): + joypixels.acceptLicense = true; [1]: ${joypixels-free-license.url} [2]: ${joypixels-license-appendix.url}