mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-02 03:43:06 +00:00
5248f6f8ef
Previously, we vendor PR #234651 because we want to keep the old
behavior of filtering out packageRequires from the arguments we pass
to the underling stdenv.mkDerivation. Doing so raises the concern
about the complexity of PR #234651.
Considering that passing packageRequires to stdenv.mkDerivation also
works well, we stop filtering it out and stop vendoring PR #234651.
Now, this PR only uses the existing interface of stdenv.mkDerivation.
Even though the name of the build helper is still extendMkDerivation',
it is nothing new and has been used in Nixpkgs, such as
php.buildComposerProject[1].
[1]: f3834de378/pkgs/build-support/php/builders/v1/build-composer-project.nix (L108)
6 lines
130 B
Nix
6 lines
130 B
Nix
{
|
|
extendMkDerivation' =
|
|
mkDerivationBase: attrsOverlay: fpargs:
|
|
(mkDerivationBase fpargs).overrideAttrs attrsOverlay;
|
|
}
|