mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-04-16 02:18:09 +00:00
edk2: support new functional mkDerivation-style
This commit is contained in:
parent
629ec1b38a
commit
ce907408b8
@ -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 [];
|
||||
|
Loading…
Reference in New Issue
Block a user