1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-18 03:30:45 +00:00

nixos/tests/quake3.nix: get rid of with lib

This commit is contained in:
Anderson Torres 2023-04-29 18:44:45 -03:00
parent 5bba43ec57
commit dc5919aa58

View file

@ -11,11 +11,11 @@ let
}; };
# Only allow the demo data to be used (only if it's unfreeRedistributable). # 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" ]; allowPackageNames = [ "quake3-demodata" "quake3-pointrelease" ];
allowLicenses = [ lib.licenses.unfreeRedistributable ]; allowLicenses = [ lib.licenses.unfreeRedistributable ];
in elem pkg.pname allowPackageNames && in lib.elem pkg.pname allowPackageNames &&
elem (pkg.meta.license or null) allowLicenses; lib.elem (pkg.meta.license or null) allowLicenses;
client = client =
{ pkgs, ... }: { pkgs, ... }: