Open RuRo opened 1 year ago
lib.extendMkDerivation
and lib.extendMkDerivationModified
to defined build helpers with fixed-point arguments based on existing ones. Please take a look!for simple packages, a stopgap fix is to use toPythonModule (stdenv.mkDerivation (finalAttrs: { ... }))
. you'll have to add the appropriate setup hooks to native{Build,Check}Inputs
which buildPythonPackage
would ordinarily takes care of though.
not the best ergonomics, but if you need it, at least it is possible.
After #119942,
mkDerivation
supports recursive definition of package attributes withThe
buildPythonPackage.overridePythonAttrs
functionality originally introduced in #26155 should also support this style of overrides (to avoid therec
antipattern and make the overrides more composable).Also, this probably belongs in #1819.