anchor.diff:    qmakeFlags = [ "OSCAR_QT.pro" ];
   
     installPhase = ''
  +    runHook preInstall
       install -d $out/bin
       install -d $out/share/OSCAR/Help
       install -d $out/share/OSCAR/Html
  
positive.code:     install oscar/Translations/* $out/share/OSCAR/Translations
      install -T Building/Linux/OSCAR.png $out/share/icons/OSCAR/OSCAR.png
      install -T Building/Linux/OSCAR.desktop $out/share/applications/OSCAR.desktop
    '';
  
    meta = with lib; {
      homepage = "https://www.sleepfiles.com/OSCAR/";
      description = "Software for reviewing and exploring data produced by CPAP and related machines used in the treatment of sleep apnea";
      license = licenses.gpl3;
      maintainers = [ maintainers.roconnor ];
      # Someone needs to create a suitable installPhase for Darwin and Windows.
      # See https://gitlab.com/pholy/OSCAR-code/-/tree/master/Building.
      broken = !stdenv.hostPlatform.isLinux;
    };
  }
  
negative.code: { lib, stdenv, mkDerivation, fetchFromGitLab, qmake, qtbase, qttools, qtserialport, libGLU }:
  mkDerivation rec {
    pname = "OSCAR";
    version = "1.3.1";
  
    src = fetchFromGitLab {
      owner = "pholy";
      repo = "OSCAR-code";
      rev = "v${version}";
      sha256 = "sha256-/70NoyiQ33RFdSTBAyi5c/JPZ2AV1/iRvkAZ6VjpUXw=";
    };
  
    buildInputs = [ qtbase qttools qtserialport libGLU ];
  