anchor.diff:      "COMMUNI_INSTALL_ICONS=${placeholder "out"}/share/icons/hicolor"
       "COMMUNI_INSTALL_DESKTOP=${placeholder "out"}/share/applications"
       "COMMUNI_INSTALL_THEMES=${placeholder "out"}/share/communi/themes"
  -    (if stdenv.isDarwin
  -      then [ "COMMUNI_INSTALL_BINS=${placeholder "out"}/Applications" ]
  -      else [ "COMMUNI_INSTALL_BINS=${placeholder "out"}/bin" ])
  +    "COMMUNI_INSTALL_BINS=${placeholder "out"}/${if stdenv.isDarwin then "Applications" else "bin"}"
     ];
   
  -  postInstall = if stdenv.isDarwin then ''
  -    # Nix qmake does not add the bundle rpath by default.
  -    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"
  -  '';
  +  postInstall =
  +    if stdenv.isDarwin then ''
  +      # Nix qmake does not add the bundle rpath by default.
  +      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"
  +    '';
   
     preFixup = ''
       rm -rf lib
  
positive.code:     homepage = "https://github.com/communi/communi-desktop";
      license = licenses.bsd3;
      maintainers = with maintainers; [ hrdinka ];
      platforms = platforms.linux;
    };
  }
  
negative.code: { stdenv
  , lib
  , fetchFromGitHub
  , libcommuni
  , qmake
  , qtbase
  , wrapQtAppsHook
  }:
  
  stdenv.mkDerivation rec {
    pname = "communi";
  