haskell builder: allow disabling fortify hardening
This commit is contained in:
parent
a462683d10
commit
f8963e2ea7
@ -44,6 +44,7 @@
|
|||||||
, checkPhase ? "", preCheck ? "", postCheck ? ""
|
, checkPhase ? "", preCheck ? "", postCheck ? ""
|
||||||
, preFixup ? "", postFixup ? ""
|
, preFixup ? "", postFixup ? ""
|
||||||
, shellHook ? ""
|
, shellHook ? ""
|
||||||
|
, hardening_fortify ? true
|
||||||
, coreSetup ? false # Use only core packages to build Setup.hs.
|
, coreSetup ? false # Use only core packages to build Setup.hs.
|
||||||
, useCpphs ? false
|
, useCpphs ? false
|
||||||
} @ args:
|
} @ args:
|
||||||
@ -314,5 +315,6 @@ stdenv.mkDerivation ({
|
|||||||
// optionalAttrs (preFixup != "") { inherit preFixup; }
|
// optionalAttrs (preFixup != "") { inherit preFixup; }
|
||||||
// optionalAttrs (postFixup != "") { inherit postFixup; }
|
// optionalAttrs (postFixup != "") { inherit postFixup; }
|
||||||
// optionalAttrs (dontStrip) { inherit dontStrip; }
|
// optionalAttrs (dontStrip) { inherit dontStrip; }
|
||||||
|
// optionalAttrs (!hardening_fortify) { inherit hardening_fortify; }
|
||||||
// optionalAttrs (stdenv.isLinux) { LOCALE_ARCHIVE = "${glibcLocales}/lib/locale/locale-archive"; }
|
// optionalAttrs (stdenv.isLinux) { LOCALE_ARCHIVE = "${glibcLocales}/lib/locale/locale-archive"; }
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user