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
nativeBuildInputsand/ordepsBuildBuildto thekernelrecord. It didn’t change anything - I tried to call
buildKernelTHENoverrideDerivationto override configfile withoverrideAttrswhich contains anativeBuildInputsand appendnixpkgs.ubootToolsto it. It failed becauseubootToolswas not innixpkgs. I switched topkgs.ubootToolswhich compiled this time but did not work because this produce anaarch64binary on ax86_64computer - 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 tooverrideDerivationon the result ofbuildLinuxcall 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…