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";}));
};
}

View file

@ -34,6 +34,12 @@ let
#corebird
gpx-viewer
gpxsee
(corebird.overrideAttrs (oldAttrs: {src = fetchFromGitHub {
owner = "IBBoard";
repo = "corebird";
rev = "bc758889a5ac304101001c36eafdb219a0acfda7";
sha256 = "1yiflxvswrybabqq5cd6x9i740560c23p58gvcn9b6riwhxzrlb9";
};}))
];
graphicsApps = [
@ -186,8 +192,7 @@ let
# TODO: make a nix-shell expression out of this
computerVisionTooling = [
# 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";})))
opencvDebug
];
in