anchor.diff:      qtbase
     ];
   
  +  # libCommuni.dylib is installed in $out/Applications/Communi.app/Contents/Frameworks/ on Darwin
  +  # Wrapper hook thinks it's a binary because it's in $out/Applications, wraps it with a shell script
  +  # So we manually call the wrapper script on just the binary
  +  dontWrapQtApps = stdenv.isDarwin;
  +
     preConfigure = ''
       export QMAKEFEATURES=${libcommuni}/features
     '';
  
positive.code:       install_name_tool \
          -add_rpath @executable_path/../Frameworks \
          $out/Applications/Communi.app/Contents/MacOS/Communi
      '' else ''
        substituteInPlace "$out/share/applications/communi.desktop" \
          --replace "/usr/bin" "$out/bin"
  
negative.code:     license = licenses.bsd3;
      maintainers = with maintainers; [ hrdinka ];
      platforms = platforms.all;
    };
  }
  