summaryrefslogtreecommitdiff
path: root/pkgs/development/libraries/libdeltachat/default.nix
diff options
context:
space:
mode:
authorRobin Gloster <mail@glob.in>2021-05-24 09:55:24 -0500
committerRobin Gloster <mail@glob.in>2021-05-24 09:55:24 -0500
commit4bc5fbef9d159e143fb7e2c3231932e6e76f667c (patch)
treee2198f5c552e0667d838b8ec764ddb3a4d8f6dec /pkgs/development/libraries/libdeltachat/default.nix
parentjq: fix build with structured-attrs on darwin (diff)
parentMerge pull request #123802 from superherointj/package-virtmanager-bugfix (diff)
downloadnixpkgs-origin/structured-attrs.tar.gz
Merge remote-tracking branch 'upstream/master' into structured-attrsorigin/structured-attrs
Diffstat (limited to 'pkgs/development/libraries/libdeltachat/default.nix')
-rw-r--r--pkgs/development/libraries/libdeltachat/default.nix55
1 files changed, 55 insertions, 0 deletions
diff --git a/pkgs/development/libraries/libdeltachat/default.nix b/pkgs/development/libraries/libdeltachat/default.nix
new file mode 100644
index 000000000000..a5c0752b9ae1
--- /dev/null
+++ b/pkgs/development/libraries/libdeltachat/default.nix
@@ -0,0 +1,55 @@
+{ lib
+, stdenv
+, fetchFromGitHub
+, cmake
+, openssl
+, perl
+, pkg-config
+, rustPlatform
+, sqlite
+}:
+
+stdenv.mkDerivation rec {
+ pname = "libdeltachat";
+ version = "1.55.0";
+
+ src = fetchFromGitHub {
+ owner = "deltachat";
+ repo = "deltachat-core-rust";
+ rev = version;
+ sha256 = "sha256-D30usAVpyiqXQMrTvmdaGFig7jhyb3rMTBQL/E2UL50=";
+ };
+
+ cargoDeps = rustPlatform.fetchCargoTarball {
+ inherit src;
+ name = "${pname}-${version}";
+ sha256 = "1hf7lrqbv0ba9c0kmnjn5x1fispyyjip1gmllq77z6nsjpn0f9w8";
+ };
+
+ 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 ];
+ };
+}