From 67c5bd07d0e2ceebe3a4d05deefdbf1cef41201f Mon Sep 17 00:00:00 2001 From: Trolli Schmittlauch Date: Thu, 11 Oct 2018 21:27:43 +0200 Subject: [PATCH] build opencv in debug mode --- home/home.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/home/home.nix b/home/home.nix index ed0c37d..d1f7e46 100644 --- a/home/home.nix +++ b/home/home.nix @@ -77,7 +77,7 @@ let cryfs sshuttle thefuck - gnupg + gnupg unar pwgen pandoc @@ -186,7 +186,8 @@ let # TODO: make a nix-shell expression out of this computerVisionTooling = [ - (enableDebugging (opencv3.override {enablePython=true; enableDocs=true; pythonPackages=pkgs.python3Packages;})) + # build with debug symbols and in debug mode (less optimized) + (enableDebugging ((opencv3.override {enablePython=true; enableDocs=true; pythonPackages=pkgs.python3Packages; }).overrideAttrs (oldAttrs: rec {cmakeBuildType = "Debug";}))) ]; in