mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
edk2: support new functional mkDerivation-style
This commit is contained in:
parent
629ec1b38a
commit
ce907408b8
1 changed files with 5 additions and 1 deletions
|
@ -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 a new issue