anchor.diff:    buildInputs = [ libusb1 hidapi ];
   
     installPhase = ''
  +    runHook preInstall
  +
       mkdir -p $out/bin
       cp openrgb $out/bin
   
  +    substituteInPlace 60-openrgb.rules \
  +      --replace /bin/chmod "${coreutils}/bin/chmod"
  +
       mkdir -p $out/etc/udev/rules.d
       cp 60-openrgb.rules $out/etc/udev/rules.d
  +
  +    runHook postInstall
     '';
   
     doInstallCheck = true;
  
positive.code:     HOME=$TMPDIR $out/bin/openrgb --help > /dev/null
    '';
  
    enableParallelBuilding = true;
  
    meta = with lib; {
      description = "Open source RGB lighting control";
      homepage = "https://gitlab.com/CalcProgrammer1/OpenRGB";
      maintainers = with maintainers; [ jonringer ];
      license = licenses.gpl2;
      platforms = platforms.linux;
    };
  }
  
negative.code: { lib, mkDerivation, fetchFromGitLab, qmake, libusb1, hidapi, pkg-config, coreutils }:
  
  mkDerivation rec {
    pname = "openrgb";
  