23 lockFile = ./Cargo.lock;
25 "email-0.0.21" = "sha256-u4CsK/JqFgq5z3iJGxxGtb7QbSkOAqmOvrmagsqfXIU=";
26 "encoded-words-0.2.0" = "sha256-KK9st0hLFh4dsrnLd6D8lC6pRFFs8W+WpZSGMGJcosk=";
27 "iroh-0.4.1" = "sha256-oLvka1nV2yQPzlcaq5CXqXRRu7GkbMocV6GoIlxQKlo=";
28 "lettre-0.9.2" = "sha256-+hU1cFacyyeC9UGVBpS14BWlJjHy90i/3ynMkKAzclk=";
31 in stdenv.mkDerivation rec {
32 pname = "libdeltachat";
35 src = fetchFromGitHub {
37 repo = "deltachat-core-rust";
39 hash = "sha256-JXSZrlekvPVGKR+ritxk3Eru2DhtUN9UBtqUZ7G9/gg=";
46 cargoDeps = rustPlatform.importCargoLock cargoLock;
52 rustPlatform.cargoSetupHook
54 ] ++ lib.optionals stdenv.isDarwin [
62 ] ++ lib.optionals stdenv.isDarwin [
69 nativeCheckInputs = with rustPlatform; [
76 inherit deltachat-repl;
77 python = python3.pkgs.deltachat;
82 description = "Delta Chat Rust Core library";
83 homepage = "https://github.com/deltachat/deltachat-core-rust/";
84 changelog = "https://github.com/deltachat/deltachat-core-rust/blob/${src.rev}/CHANGELOG.md";
85 license = licenses.mpl20;
86 maintainers = with maintainers; [ dotlambda ];
87 platforms = platforms.unix;