diff options
author | Anderson Torres <torres.anderson.85@protonmail.com> | 2023-04-29 18:44:45 -0300 |
---|---|---|
committer | Anderson Torres <torres.anderson.85@protonmail.com> | 2023-05-12 22:29:25 -0300 |
commit | dc5919aa58b1967264f07459fd6343ed3d4bc9de (patch) | |
tree | 2f5b28b10ad639902f6170413458e8c2c4116463 /nixos/tests/quake3.nix | |
parent | 5bba43ec576f2d8ffb4119c2383233df8f912398 (diff) |
nixos/tests/quake3.nix: get rid of `with lib`
Diffstat (limited to 'nixos/tests/quake3.nix')
-rw-r--r-- | nixos/tests/quake3.nix | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/nixos/tests/quake3.nix b/nixos/tests/quake3.nix index ef5fcc41476bc..2d8c5207001cb 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, ... }: |