anchor.diff:      fetchSubmodules = true;
     };
   
  -  patches = fetchpatch {
  -    name = "Fix-meta-example-parser-bug-in-parallel-builds.patch";
  -    url = "https://github.com/shogun-toolbox/shogun/commit/ecd6a8f11ac52748e89d27c7fab7f43c1de39f05.patch";
  -    sha256 = "1hrwwrj78sxhwcvgaz7n4kvh5y9snfcc4jf5xpgji5hjymnl311n";
  -  };
  +  patches = [
  +    (fetchpatch {
  +      name = "Fix-meta-example-parser-bug-in-parallel-builds.patch";
  +      url = "https://github.com/shogun-toolbox/shogun/commit/ecd6a8f11ac52748e89d27c7fab7f43c1de39f05.patch";
  +      sha256 = "1hrwwrj78sxhwcvgaz7n4kvh5y9snfcc4jf5xpgji5hjymnl311n";
  +    })
  +    (fetchpatch {
  +      url = "https://github.com/awild82/shogun/commit/365ce4c4c700736d2eec8ba6c975327a5ac2cd9b.patch";
  +      sha256 = "158hqv4xzw648pmjbwrhxjp7qcppqa7kvriif87gn3zdn711c49s";
  +    })
  +  ];
   
     CCACHE_DIR=".ccache";
   
  
positive.code: assert opencvSupport -> opencv != null;
  
  stdenv.mkDerivation rec {
  
    pname = "shogun";
    version = "6.0.0";
    name = pname + "-" + version;
  
negative.code:     license = licenses.gpl3;
      maintainers = with maintainers; [ edwtjo ];
    };
  }
  