mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-10-30 14:11:21 +00:00
nixos/tests/quake3.nix: get rid of with lib
This commit is contained in:
parent
5bba43ec57
commit
dc5919aa58
@ -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, ... }:
|
||||
|
Loading…
Reference in New Issue
Block a user