Commit 6d6e907d authored by Robert Schütz's avatar Robert Schütz
Browse files

kdeltachat: pin libdeltachat at 1.155.6

Otherwise kdeltachat fails to build with

    /build/source/message.cpp: In member function 'void DcMessage::setFile(QString)':
    /build/source/message.cpp:93:12: error: 'dc_msg_set_file' was not declared in this scope; did you mean 'dc_msg_get_file'?
       93 |     return dc_msg_set_file(m_message, utf8File.constData(), NULL);
          |            ^~~~~~~~~~~~~~~
          |            dc_msg_get_file
parent 4e4fd664
Loading
Loading
Loading
Loading
+19 −1
Original line number Diff line number Diff line
{
  lib,
  mkDerivation,
  fetchFromGitHub,
  fetchFromSourcehut,
  cmake,
  extra-cmake-modules,
@@ -11,8 +12,25 @@
  qtimageformats,
  qtmultimedia,
  qtwebengine,
  rustPlatform,
}:

let
  libdeltachat' = libdeltachat.overrideAttrs rec {
    version = "1.155.6";
    src = fetchFromGitHub {
      owner = "chatmail";
      repo = "core";
      tag = "v${version}";
      hash = "sha256-d7EmmyLSJjFIZM1j6LP8f4WnXiptNTAqOdJD/oPL02Y=";
    };
    cargoDeps = rustPlatform.fetchCargoVendor {
      pname = "deltachat-core-rust";
      inherit version src;
      hash = "sha256-E01aEzNi06LQntrlA+342a8Nl5API6v7HbdmuKpfajs=";
    };
  };
in
mkDerivation {
  pname = "kdeltachat";
  version = "unstable-2024-01-14";
@@ -32,7 +50,7 @@ mkDerivation {

  buildInputs = [
    kirigami2
    libdeltachat
    libdeltachat'
    qtimageformats
    qtmultimedia
    qtwebengine