mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-09-11 07:15:54 +03: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).
|
# 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, ... }:
|
||||||
|
Loading…
Reference in New Issue
Block a user