Hi, I want to use the cyclonedds derivation, but I want to change which flags it enables during configuration. Can I do this, or do I need to copy + modify the derivation?
Yes, this is simple to do with overrideAttrs:
cyclonedds.overrideAttrs {
cmakeFlags = [ "-DSOME_FLAG=ON" ];
}
Some prefer lib.cmakeBool and lib.cmakeFeature for assembling the flag syntax.
cyclonedds.overrideAttrs {
cmakeFlags = [ (lib.cmakeBool "SOME_FLAG" true) ];
}
1 Like