From dc5919aa58b1967264f07459fd6343ed3d4bc9de Mon Sep 17 00:00:00 2001 From: Anderson Torres Date: Sat, 29 Apr 2023 18:44:45 -0300 Subject: [PATCH] nixos/tests/quake3.nix: get rid of `with lib` --- nixos/tests/quake3.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nixos/tests/quake3.nix b/nixos/tests/quake3.nix index ef5fcc41476b..2d8c5207001c 100644 --- a/nixos/tests/quake3.nix +++ b/nixos/tests/quake3.nix @@ -11,11 +11,11 @@ let }; # Only allow the demo data to be used (only if it's unfreeRedistributable). - unfreePredicate = pkg: with lib; let + unfreePredicate = pkg: let allowPackageNames = [ "quake3-demodata" "quake3-pointrelease" ]; allowLicenses = [ lib.licenses.unfreeRedistributable ]; - in elem pkg.pname allowPackageNames && - elem (pkg.meta.license or null) allowLicenses; + in lib.elem pkg.pname allowPackageNames && + lib.elem (pkg.meta.license or null) allowLicenses; client = { pkgs, ... }: