Merge pull request #121151 from dotlambda/libdeltachat-init

libdeltachat: init at 1.54.0

authored by Robert Schütz and committed by GitHub 30c30367 688fee8b

+161
+41
pkgs/applications/networking/instant-messengers/kdeltachat/default.nix
··· 1 + { lib 2 + , mkDerivation 3 + , fetchFromSourcehut 4 + , cmake 5 + , extra-cmake-modules 6 + , pkg-config 7 + , kirigami2 8 + , libdeltachat 9 + , qtmultimedia 10 + }: 11 + 12 + mkDerivation rec { 13 + pname = "kdeltachat"; 14 + version = "unstable-2021-05-03"; 15 + 16 + src = fetchFromSourcehut { 17 + owner = "~link2xt"; 18 + repo = "kdeltachat"; 19 + rev = "dd7455764074c0864234a6a25ab6f87e8d5c3121"; 20 + sha256 = "1vsy2jcisvf9mndxlwif3ghv1n2gz5ycr1qh72kgski38qan621v"; 21 + }; 22 + 23 + nativeBuildInputs = [ 24 + cmake 25 + extra-cmake-modules 26 + pkg-config 27 + ]; 28 + 29 + buildInputs = [ 30 + kirigami2 31 + libdeltachat 32 + qtmultimedia 33 + ]; 34 + 35 + meta = with lib; { 36 + description = "Delta Chat client using Kirigami framework"; 37 + homepage = "https://git.sr.ht/~link2xt/kdeltachat"; 38 + license = licenses.gpl3Plus; 39 + maintainers = with maintainers; [ dotlambda ]; 40 + }; 41 + }
+55
pkgs/development/libraries/libdeltachat/default.nix
··· 1 + { lib 2 + , stdenv 3 + , fetchFromGitHub 4 + , cmake 5 + , openssl 6 + , perl 7 + , pkg-config 8 + , rustPlatform 9 + , sqlite 10 + }: 11 + 12 + stdenv.mkDerivation rec { 13 + pname = "libdeltachat"; 14 + version = "1.54.0"; 15 + 16 + src = fetchFromGitHub { 17 + owner = "deltachat"; 18 + repo = "deltachat-core-rust"; 19 + rev = version; 20 + sha256 = "02hvsfv1yar8bdpkfrfiiicq9qqnfhp46v6qqph9ar6khz3f1kim"; 21 + }; 22 + 23 + cargoDeps = rustPlatform.fetchCargoTarball { 24 + inherit src; 25 + name = "${pname}-${version}"; 26 + sha256 = "1p5yrhczp9nfijbvkmkmx1rabk5k3c1ni4k1vc0mw4jgl26lslcm"; 27 + }; 28 + 29 + nativeBuildInputs = [ 30 + cmake 31 + perl 32 + pkg-config 33 + ] ++ (with rustPlatform; [ 34 + cargoSetupHook 35 + rust.cargo 36 + ]); 37 + 38 + buildInputs = [ 39 + openssl 40 + sqlite 41 + ]; 42 + 43 + checkInputs = with rustPlatform; [ 44 + cargoCheckHook 45 + ]; 46 + 47 + meta = with lib; { 48 + description = "Delta Chat Rust Core library"; 49 + homepage = "https://github.com/deltachat/deltachat-core-rust/"; 50 + changelog = "https://github.com/deltachat/deltachat-core-rust/blob/${version}/CHANGELOG.md"; 51 + license = licenses.mpl20; 52 + platforms = platforms.linux; 53 + maintainers = with maintainers; [ dotlambda ]; 54 + }; 55 + }
+59
pkgs/development/python-modules/deltachat/default.nix
··· 1 + { lib 2 + , buildPythonPackage 3 + , isPy27 4 + , fetchpatch 5 + , setuptools-scm 6 + , libdeltachat 7 + , cffi 8 + , IMAPClient 9 + , pluggy 10 + , requests 11 + , setuptools 12 + , pytestCheckHook 13 + }: 14 + 15 + buildPythonPackage rec { 16 + pname = "deltachat"; 17 + inherit (libdeltachat) version src; 18 + sourceRoot = "${src.name}/python"; 19 + 20 + disabled = isPy27; 21 + 22 + nativeBuildInputs = [ 23 + setuptools-scm 24 + ]; 25 + 26 + SETUPTOOLS_SCM_PRETEND_VERSION = version; 27 + 28 + buildInputs = [ 29 + libdeltachat 30 + ]; 31 + 32 + propagatedBuildInputs = [ 33 + cffi 34 + IMAPClient 35 + pluggy 36 + requests 37 + setuptools 38 + ]; 39 + 40 + checkInputs = [ 41 + pytestCheckHook 42 + ]; 43 + 44 + pythonImportsCheck = [ 45 + "deltachat" 46 + "deltachat.account" 47 + "deltachat.contact" 48 + "deltachat.chat" 49 + "deltachat.message" 50 + ]; 51 + 52 + meta = with lib; { 53 + description = "Python bindings for the Delta Chat Core library"; 54 + homepage = "https://github.com/deltachat/deltachat-core-rust/tree/master/python"; 55 + changelog = "https://github.com/deltachat/deltachat-core-rust/blob/${version}/python/CHANGELOG"; 56 + license = licenses.mpl20; 57 + maintainers = with maintainers; [ dotlambda ]; 58 + }; 59 + }
+4
pkgs/top-level/all-packages.nix
··· 15539 15539 15540 15540 libdeflate = callPackage ../development/libraries/libdeflate { }; 15541 15541 15542 + libdeltachat = callPackage ../development/libraries/libdeltachat { }; 15543 + 15542 15544 libdevil = callPackage ../development/libraries/libdevil { 15543 15545 inherit (darwin.apple_sdk.frameworks) OpenGL; 15544 15546 }; ··· 24172 24174 k4dirstat = libsForQt5.callPackage ../applications/misc/k4dirstat { }; 24173 24175 24174 24176 kbibtex = libsForQt5.callPackage ../applications/office/kbibtex { }; 24177 + 24178 + kdeltachat = libsForQt5.callPackage ../applications/networking/instant-messengers/kdeltachat { }; 24175 24179 24176 24180 kdevelop-pg-qt = libsForQt5.callPackage ../applications/editors/kdevelop5/kdevelop-pg-qt.nix { }; 24177 24181
+2
pkgs/top-level/python-packages.nix
··· 1751 1751 1752 1752 delegator-py = callPackage ../development/python-modules/delegator-py { }; 1753 1753 1754 + deltachat = callPackage ../development/python-modules/deltachat { }; 1755 + 1754 1756 deluge-client = callPackage ../development/python-modules/deluge-client { }; 1755 1757 1756 1758 demjson = callPackage ../development/python-modules/demjson { };