Thanks for your reply!
I understood what I was doing wrong with overrideAttrs
, it’s clearer now.
However I’m not sure how to add my dependencies without override. I tried:
- Adding
nativeBuildInputs
and/ordepsBuildBuild
to thekernel
record. It didn’t change anything - I tried to call
buildKernel
THENoverrideDerivation
to override configfile withoverrideAttrs
which contains anativeBuildInputs
and appendnixpkgs.ubootTools
to it. It failed becauseubootTools
was not innixpkgs
. I switched topkgs.ubootTools
which compiled this time but did not work because this produce anaarch64
binary on ax86_64
computer - I noticed this so I tried to add
stdenv.hostPlatform.linux-kernel.target = "uImage"
which had no effect. I then tried to redo the override chain described on the step before but this time trying to modify this in order to add my dependencies. But this did not work either because after the call tooverrideDerivation
on the result ofbuildLinux
call kept saying thatkernel
(this) was not present
Clearly my use case seem to be handled by this but I just don’t understand how am I supposed to make this condition true…