Commit 442ded4e authored by Emily's avatar Emily
Browse files

darwin.mkAppleDerivation: use `lib.extendMkDerivation`

parent 68f71ff8
Loading
Loading
Loading
Loading
+51 −58
Original line number Diff line number Diff line
@@ -14,14 +14,9 @@ in
let
  hasBasenamePrefix = prefix: file: lib.hasPrefix prefix (baseNameOf file);
in
lib.makeOverridable (
  attrs:
  let
    attrs' = if lib.isFunction attrs then attrs else _: attrs;
    attrsFixed = lib.fix attrs';
  in
  bootstrapStdenv.mkDerivation (
    lib.extends (
lib.extendMkDerivation {
  constructDrv = bootstrapStdenv.mkDerivation;
  extendDrvArgs =
    self: super:
    assert super ? releaseName;
    let
@@ -75,7 +70,5 @@ lib.makeOverridable (
      ];

      mesonBuildType = "release";
    };
}
    ) attrs'
  )
)