edk2: support new functional mkDerivation-style

This commit is contained in:
Raito Bezarius 2022-08-22 16:23:34 +02:00
parent 629ec1b38a
commit ce907408b8

View file

@ -87,7 +87,11 @@ edk2 = buildStdenv.mkDerivation {
};
passthru = {
mkDerivation = projectDscPath: attrs: buildStdenv.mkDerivation ({
mkDerivation = projectDscPath: attrsOrFun: buildStdenv.mkDerivation (finalAttrs:
let
attrs = if lib.isFunction attrsOrFun then (attrsOrFun finalAttrs) else attrsOrFun;
in
{
inherit (edk2) src;
depsBuildBuild = [ buildPackages.stdenv.cc ] ++ attrs.depsBuildBuild or [];