Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #121151 from dotlambda/libdeltachat-init
libdeltachat: init at 1.54.0
- Loading branch information
Showing
5 changed files
with
161 additions
and
0 deletions.
There are no files selected for viewing
41 changes: 41 additions & 0 deletions
41
pkgs/applications/networking/instant-messengers/kdeltachat/default.nix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
{ lib | ||
, mkDerivation | ||
, fetchFromSourcehut | ||
, cmake | ||
, extra-cmake-modules | ||
, pkg-config | ||
, kirigami2 | ||
, libdeltachat | ||
, qtmultimedia | ||
}: | ||
|
||
mkDerivation rec { | ||
pname = "kdeltachat"; | ||
version = "unstable-2021-05-03"; | ||
|
||
src = fetchFromSourcehut { | ||
owner = "~link2xt"; | ||
repo = "kdeltachat"; | ||
rev = "dd7455764074c0864234a6a25ab6f87e8d5c3121"; | ||
sha256 = "1vsy2jcisvf9mndxlwif3ghv1n2gz5ycr1qh72kgski38qan621v"; | ||
}; | ||
|
||
nativeBuildInputs = [ | ||
cmake | ||
extra-cmake-modules | ||
pkg-config | ||
]; | ||
|
||
buildInputs = [ | ||
kirigami2 | ||
libdeltachat | ||
qtmultimedia | ||
]; | ||
|
||
meta = with lib; { | ||
description = "Delta Chat client using Kirigami framework"; | ||
homepage = "https://git.sr.ht/~link2xt/kdeltachat"; | ||
license = licenses.gpl3Plus; | ||
maintainers = with maintainers; [ dotlambda ]; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
{ lib | ||
, stdenv | ||
, fetchFromGitHub | ||
, cmake | ||
, openssl | ||
, perl | ||
, pkg-config | ||
, rustPlatform | ||
, sqlite | ||
}: | ||
|
||
stdenv.mkDerivation rec { | ||
pname = "libdeltachat"; | ||
version = "1.54.0"; | ||
|
||
src = fetchFromGitHub { | ||
owner = "deltachat"; | ||
repo = "deltachat-core-rust"; | ||
rev = version; | ||
sha256 = "02hvsfv1yar8bdpkfrfiiicq9qqnfhp46v6qqph9ar6khz3f1kim"; | ||
}; | ||
|
||
cargoDeps = rustPlatform.fetchCargoTarball { | ||
inherit src; | ||
name = "${pname}-${version}"; | ||
sha256 = "1p5yrhczp9nfijbvkmkmx1rabk5k3c1ni4k1vc0mw4jgl26lslcm"; | ||
}; | ||
|
||
nativeBuildInputs = [ | ||
cmake | ||
perl | ||
pkg-config | ||
] ++ (with rustPlatform; [ | ||
cargoSetupHook | ||
rust.cargo | ||
]); | ||
|
||
buildInputs = [ | ||
openssl | ||
sqlite | ||
]; | ||
|
||
checkInputs = with rustPlatform; [ | ||
cargoCheckHook | ||
]; | ||
|
||
meta = with lib; { | ||
description = "Delta Chat Rust Core library"; | ||
homepage = "https://github.com/deltachat/deltachat-core-rust/"; | ||
changelog = "https://github.com/deltachat/deltachat-core-rust/blob/${version}/CHANGELOG.md"; | ||
license = licenses.mpl20; | ||
platforms = platforms.linux; | ||
maintainers = with maintainers; [ dotlambda ]; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
{ lib | ||
, buildPythonPackage | ||
, isPy27 | ||
, fetchpatch | ||
, setuptools-scm | ||
, libdeltachat | ||
, cffi | ||
, IMAPClient | ||
, pluggy | ||
, requests | ||
, setuptools | ||
, pytestCheckHook | ||
}: | ||
|
||
buildPythonPackage rec { | ||
pname = "deltachat"; | ||
inherit (libdeltachat) version src; | ||
sourceRoot = "${src.name}/python"; | ||
|
||
disabled = isPy27; | ||
|
||
nativeBuildInputs = [ | ||
setuptools-scm | ||
]; | ||
|
||
SETUPTOOLS_SCM_PRETEND_VERSION = version; | ||
|
||
buildInputs = [ | ||
libdeltachat | ||
]; | ||
|
||
propagatedBuildInputs = [ | ||
cffi | ||
IMAPClient | ||
pluggy | ||
requests | ||
setuptools | ||
]; | ||
|
||
checkInputs = [ | ||
pytestCheckHook | ||
]; | ||
|
||
pythonImportsCheck = [ | ||
"deltachat" | ||
"deltachat.account" | ||
"deltachat.contact" | ||
"deltachat.chat" | ||
"deltachat.message" | ||
]; | ||
|
||
meta = with lib; { | ||
description = "Python bindings for the Delta Chat Core library"; | ||
homepage = "https://github.com/deltachat/deltachat-core-rust/tree/master/python"; | ||
changelog = "https://github.com/deltachat/deltachat-core-rust/blob/${version}/python/CHANGELOG"; | ||
license = licenses.mpl20; | ||
maintainers = with maintainers; [ dotlambda ]; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters