anchor.diff:  { lib, fetchFromGitHub, fetchpatch, mkDerivation
   , qtbase, qtsvg, qtserialport, qtwebengine, qtmultimedia, qttools
  -, qtconnectivity, qtcharts, libusb-compat-0_1
  +, qtconnectivity, qtcharts, libusb-compat-0_1, gsl, blas
   , bison, flex, zlib, qmake, makeDesktopItem, makeWrapper
   }:
   
  
positive.code:     })
    ];
  
    NIX_LDFLAGS = "-lz";
  
    qtWrapperArgs = [ "--set LD_LIBRARY_PATH ${zlib.out}/lib" ];
  
    preConfigure = ''
      cp src/gcconfig.pri.in src/gcconfig.pri
  
negative.code:   };
  in mkDerivation rec {
    pname = "golden-cheetah";
    version = "3.6-DEV2107";
  
    src = fetchFromGitHub {
      owner = "GoldenCheetah";
      repo = "GoldenCheetah";
      rev = "v${version}";
      sha256 = "1d54x3pv27w1ys2f5l7gnfhyijhgcgdjnq1c1mj7hvg35dmh054d";
    };
  
    buildInputs = [
      qtbase qtsvg qtserialport qtwebengine qtmultimedia qttools zlib
      qtconnectivity qtcharts libusb-compat-0_1 gsl blas
    ];
    nativeBuildInputs = [ flex makeWrapper qmake bison ];
  
  