creating an override name for opencv with debug enabled

This commit is contained in:
Trolli Schmittlauch 2018-10-12 23:42:25 +02:00
parent ad8df0fae4
commit d8fe1dad8a
2 changed files with 13 additions and 2 deletions

View file

@ -1,10 +1,16 @@
let
lib = (import <nixpkgs> {}).lib;
pkgs = (import <nixpkgs> {}).pkgs;
in
{
clementine.spotify = false;
whitelistedLicenses = with lib.licenses; [ wtfpl ];
packageOverrides = pkgs: with pkgs; rec {
# build with debug symbols and in debug mode (less optimized)
opencvDebug = enableDebugging ((opencv3.override {enablePython=true; enableDocs=true; pythonPackages=pkgs.python3Packages; }).overrideAttrs (oldAttrs: rec {cmakeBuildType = "Debug";}));
};
}