creating an override name for opencv with debug enabled
This commit is contained in:
parent
ad8df0fae4
commit
d8fe1dad8a
|
@ -1,10 +1,16 @@
|
||||||
let
|
let
|
||||||
lib = (import <nixpkgs> {}).lib;
|
lib = (import <nixpkgs> {}).lib;
|
||||||
|
pkgs = (import <nixpkgs> {}).pkgs;
|
||||||
|
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
|
||||||
clementine.spotify = false;
|
clementine.spotify = false;
|
||||||
whitelistedLicenses = with lib.licenses; [ wtfpl ];
|
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";}));
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -34,6 +34,12 @@ let
|
||||||
#corebird
|
#corebird
|
||||||
gpx-viewer
|
gpx-viewer
|
||||||
gpxsee
|
gpxsee
|
||||||
|
(corebird.overrideAttrs (oldAttrs: {src = fetchFromGitHub {
|
||||||
|
owner = "IBBoard";
|
||||||
|
repo = "corebird";
|
||||||
|
rev = "bc758889a5ac304101001c36eafdb219a0acfda7";
|
||||||
|
sha256 = "1yiflxvswrybabqq5cd6x9i740560c23p58gvcn9b6riwhxzrlb9";
|
||||||
|
};}))
|
||||||
];
|
];
|
||||||
|
|
||||||
graphicsApps = [
|
graphicsApps = [
|
||||||
|
@ -186,8 +192,7 @@ let
|
||||||
|
|
||||||
# TODO: make a nix-shell expression out of this
|
# TODO: make a nix-shell expression out of this
|
||||||
computerVisionTooling = [
|
computerVisionTooling = [
|
||||||
# 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";})))
|
|
||||||
];
|
];
|
||||||
|
|
||||||
in
|
in
|
||||||
|
|
Loading…
Reference in a new issue