openbsd.mkDerivation: add extraNativeBuildInputs input

Some packages require extra hooks or tools.
Rather than overriding all of the nativeBuildInputs
and needing to specify all of them, add a field so that
we just need to specify inputs that are not always required.

Co-Authored-By: Audrey Dutcher <audrey@rhelmot.io>
This commit is contained in:
Artemis Tosini 2024-11-05 22:09:24 +00:00
parent 62d8501eb8
commit 51a07b20cd
No known key found for this signature in database
GPG Key ID: EE5227935FE3FF18

View File

@ -53,7 +53,7 @@ lib.makeOverridable (
install
tsort
lorder
];
] ++ (attrs.extraNativeBuildInputs or [ ]);
HOST_SH = stdenv'.shell;
@ -93,6 +93,6 @@ lib.makeOverridable (
dontBuild = true;
}
// lib.optionalAttrs stdenv'.hostPlatform.isStatic { NOLIBSHARED = true; }
// attrs
// (builtins.removeAttrs attrs [ "extraNativeBuildInputs" ])
)
)