From 74e591dc460a04eea2e835ee2f3787cf19fa2222 Mon Sep 17 00:00:00 2001 From: toonn Date: Mon, 22 Apr 2024 13:16:01 +0200 Subject: [PATCH] joypixels: Narrow unfree recommendation JoyPixels requires explicit consent to the license and since the license is unfree NixPkgs has to be configured to allow the package. This updates the recommendation from setting allowUnfreePackages to adding just JoyPixels to the allowUnfreePredicate. --- pkgs/data/fonts/joypixels/default.nix | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/pkgs/data/fonts/joypixels/default.nix b/pkgs/data/fonts/joypixels/default.nix index 2d1296b8cf34..b54aaefa10c7 100644 --- a/pkgs/data/fonts/joypixels/default.nix +++ b/pkgs/data/fonts/joypixels/default.nix @@ -43,11 +43,16 @@ let unfree licenses. configuration.nix: - nixpkgs.config.allowUnfree = true; + nixpkgs.config.allowUnfreePredicate = pkg: + builtins.elem (lib.getName pkg) [ + "joypixels" + ]; nixpkgs.config.joypixels.acceptLicense = true; config.nix: - allowUnfree = true; + allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [ + "joypixels" + ]; joypixels.acceptLicense = true; [1]: ${joypixels-free-license.url}