[buoh/cleanups: 1/7] Nix: Disable hardening



commit 0f57d553a06536d4e45dbef86753ae1d0f87ce3f
Author: Jan Tojnar <jtojnar gmail com>
Date:   Fri Sep 14 18:39:05 2018 +0200

    Nix: Disable hardening
    
    Hardening does not work in debug mode, whih is default in the shell.

 default.nix | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/default.nix b/default.nix
index 35b7cdf..2f61ef6 100644
--- a/default.nix
+++ b/default.nix
@@ -63,5 +63,8 @@ stdenv.mkDerivation rec {
       meson test --print-errorlogs
   '';
 
+  # Hardening does not work in debug mode
+  hardeningDisable = optionals shell [ "all" ];
+
   inherit doCheck;
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]