Commit c2a232a8 authored by Robert Schütz's avatar Robert Schütz Committed by Jörg Thalheim
Browse files

deltachat-repl: init at 1.128.0

parent 101fe8d2
Loading
Loading
Loading
Loading
+26 −0
Original line number Diff line number Diff line
{ lib
, rustPlatform
, libdeltachat
, perl
, pkg-config
}:

rustPlatform.buildRustPackage {
  pname = "deltachat-repl";

  inherit (libdeltachat) version src cargoLock buildInputs;

  nativeBuildInputs = [
    perl
    pkg-config
  ];

  cargoBuildFlags = [ "--package" "deltachat-repl" ];

  doCheck = false;

  meta = libdeltachat.meta // {
    description = "Delta Chat CLI client";
    mainProgram = "deltachat-repl";
  };
}
+19 −12
Original line number Diff line number Diff line
@@ -3,6 +3,7 @@
, fetchFromGitHub
, cargo
, cmake
, deltachat-repl
, openssl
, perl
, pkg-config
@@ -17,7 +18,17 @@
, libiconv
}:

stdenv.mkDerivation rec {
let
  cargoLock = {
    lockFile = ./Cargo.lock;
    outputHashes = {
      "email-0.0.21" = "sha256-u4CsK/JqFgq5z3iJGxxGtb7QbSkOAqmOvrmagsqfXIU=";
      "encoded-words-0.2.0" = "sha256-KK9st0hLFh4dsrnLd6D8lC6pRFFs8W+WpZSGMGJcosk=";
      "iroh-0.4.1" = "sha256-oLvka1nV2yQPzlcaq5CXqXRRu7GkbMocV6GoIlxQKlo=";
      "lettre-0.9.2" = "sha256-+hU1cFacyyeC9UGVBpS14BWlJjHy90i/3ynMkKAzclk=";
    };
  };
in stdenv.mkDerivation rec {
  pname = "libdeltachat";
  version = "1.128.0";

@@ -32,15 +43,7 @@ stdenv.mkDerivation rec {
    ./no-static-lib.patch
  ];

  cargoDeps = rustPlatform.importCargoLock {
    lockFile = ./Cargo.lock;
    outputHashes = {
      "email-0.0.21" = "sha256-u4CsK/JqFgq5z3iJGxxGtb7QbSkOAqmOvrmagsqfXIU=";
      "encoded-words-0.2.0" = "sha256-KK9st0hLFh4dsrnLd6D8lC6pRFFs8W+WpZSGMGJcosk=";
      "iroh-0.4.1" = "sha256-oLvka1nV2yQPzlcaq5CXqXRRu7GkbMocV6GoIlxQKlo=";
      "lettre-0.9.2" = "sha256-+hU1cFacyyeC9UGVBpS14BWlJjHy90i/3ynMkKAzclk=";
    };
  };
  cargoDeps = rustPlatform.importCargoLock cargoLock;

  nativeBuildInputs = [
    cmake
@@ -67,9 +70,13 @@ stdenv.mkDerivation rec {
    cargoCheckHook
  ];

  passthru.tests = {
  passthru = {
    inherit cargoLock;
    tests = {
      inherit deltachat-repl;
      python = python3.pkgs.deltachat;
    };
  };

  meta = with lib; {
    description = "Delta Chat Rust Core library";