@@ -31,6 +31,7 @@ let self =
3131
3232, dontPatchELF ? component.dontPatchELF
3333, dontStrip ? component.dontStrip
34+, hardeningDisable ? component.hardeningDisable
3435
3536, enableStatic ? component.enableStatic
3637, enableShared ? ghc.enableShared && component.enableShared && !haskellLib.isCrossHost
@@ -376,5 +377,8 @@ let
376377 inherit
377378 preBuild postBuild
378379 preInstall postInstall;
380+ }
381+ // lib.optionalAttrs (hardeningDisable != []) {
382+ inherit hardeningDisable;
379383 });
380384in drv; in self)