treewide: use lib.optionals

This commit is contained in:
Felix Buehler
2023-02-14 19:11:59 +01:00
parent 3bee4ab8db
commit bc3d5934d7
23 changed files with 43 additions and 57 deletions
@@ -39,7 +39,7 @@ let
}));
# See build-setupcfg/default.nix for documentation.
buildSetupcfg = import ../../../build-support/build-setupcfg self;
buildSetupcfg = import ../../../build-support/build-setupcfg lib self;
# Check whether a derivation provides a Python module.
hasPythonModule = drv: drv?pythonModule && drv.pythonModule == python;