Hello nixos community,
I am completely new to Nixos, so I am sorry if it is silly questions…
I use OpenCV in order to train and use Haar classifiers for object detection.
That is why I need to build opencv executables createsamples, traincascade which exist only in OpenCV 3.x.
Here is OpenCV repo: https://github.com/opencv/opencv/tree/3.4
and here are the applications I try to build: https://github.com/opencv/opencv/tree/3.4/apps
It seems that there is a flag to build them as we can see in https://github.com/opencv/opencv/blob/5190043e563b2377ce42251cea3ebdc27e474fba/CMakeLists.txt
I read the official Nixos OpenCV package https://github.com/NixOS/nixpkgs/blob/ceaca998029d4b1ac7fd2bee985a3b0f37a786b5/pkgs/development/libraries/opencv/3.x.nix but I don’t know how to modify it to build a custom OpenCV package with the apps executables I need (createsamples, traincascade).
Could you help me?