anchor.diff:      # disable when available in nixpkgs
       "-DALLOW_BUNDLED_OPENCTM=ON"
       "-DALLOW_BUNDLED_SSYNTH=ON"
  +    "-DALLOW_BUNDLED_BOOST=OFF"
       # some plugins are disabled unless these are on
       "-DALLOW_BUNDLED_NEWUOA=ON"
       "-DALLOW_BUNDLED_LEVMAR=ON"
  
positive.code:     gmp
      levmar
      qhull
    ];
  
    nativeBuildInputs = [ cmake ];
  
negative.code: , levmar
  , qhull
  , cmake
  , cgal_5
  , boost17x
  , mpfr
  , xercesc
  }:
  
  mkDerivation rec {
    pname = "meshlab";
    version = "2021.10";
  
    src = fetchFromGitHub {
      owner = "cnr-isti-vclab";
      repo = "meshlab";
      rev = "Meshlab-${version}";
      sha256 = "14rrd8qrf91k89y6w2mn1r9zcfnwd0mir6g4dlgvr04i77hj4lk4";
      fetchSubmodules = true; # for vcglib
    };
  
  