Set default build system to empty string

In case a build-system is not set.

Closes #83
This commit is contained in:
adisbladis 2020-04-14 11:42:16 +01:00
parent f49618eed0
commit a7a882f88f
No known key found for this signature in database
GPG key ID: 110BFAD44C6249B7

View file

@ -90,8 +90,8 @@ let
{ pythonPackages
, pyProject
}:
let
buildSystem = lib.getAttrFromPath [ "build-system" "build-backend" ] pyProject;
let
buildSystem = lib.attrByPath [ "build-system" "build-backend" ] "" pyProject;
drvAttr = builtins.elemAt (builtins.split "\\.|:" buildSystem) 0;
in
if buildSystem == "" then [] else (