Skip to content

Instantly share code, notes, and snippets.

@srhb
Created September 4, 2018 08:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save srhb/25aee2b22651e1a3834640c18c29fb3b to your computer and use it in GitHub Desktop.
Save srhb/25aee2b22651e1a3834640c18c29fb3b to your computer and use it in GitHub Desktop.
let
overlay = self: super: {
python = super.python.override {
packageOverrides = pself: psuper: {
opencv3 = pself.toPythonModule ((super.opencv3.overrideAttrs (oa: rec {
version = "3.4.3";
src = self.fetchFromGitHub {
owner = "opencv";
repo = "opencv";
rev = version;
sha256 = "138q3wiv4g4xvqzsp93xaqayv7kz7bl2vrgppp8jm8w6m25cd4i2";
};
})).override {
enablePython = true;
pythonPackages = pself;
});
};
};
};
in
{ pkgs ? import <nixpkgs> { overlays = [ overlay ]; } }:
pkgs.pythonPackages.opencv3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment