Skip to content

Commit

Permalink
Merge pull request NixOS#269801 from dotlambda/deltachat-desktop-1.42.1
Browse files Browse the repository at this point in the history
deltachat-desktop: 1.41.4 -> 1.42.1
  • Loading branch information
dotlambda authored Nov 27, 2023
2 parents e47087d + d07bce0 commit 5171694
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
, buildGoModule
, esbuild
, fetchFromGitHub
, jq
, libdeltachat
, makeDesktopItem
, makeWrapper
Expand Down Expand Up @@ -35,18 +36,26 @@ let
in
buildNpmPackage rec {
pname = "deltachat-desktop";
version = "1.41.4";
version = "1.42.1";

src = fetchFromGitHub {
owner = "deltachat";
repo = "deltachat-desktop";
rev = "v${version}";
hash = "sha256-T2EPCYQ2N414sUEqpXtx459sZZXOnHgXM0/dz3Wi9hw=";
hash = "sha256-Ua4HN02203l2FgeMotqLjcRSEHFP/4OTrl8sPS/0C+k=";
};

npmDepsHash = "sha256-q60qrTN6H1AfJGhula8dzRwnKw2l+X0BOIvnKZh5t2s=";
npmDepsHash = "sha256-c9ZwShmHIoFJ2mAabKyYkYsCMXqxUf+tAS1a1/7s0qo=";

postPatch = ''
test \
$(jq -r '.packages."node_modules/@deltachat/jsonrpc-client".version' package-lock.json) \
= $(pkg-config --modversion deltachat) \
|| (echo "error: libdeltachat version does not match jsonrpc-client" && exit 1)
'';

nativeBuildInputs = [
jq
makeWrapper
pkg-config
python3
Expand Down
10 changes: 5 additions & 5 deletions pkgs/development/libraries/libdeltachat/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions pkgs/development/libraries/libdeltachat/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
, fetchFromGitHub
, cargo
, cmake
, deltachat-desktop
, deltachat-repl
, openssl
, perl
Expand Down Expand Up @@ -30,13 +31,13 @@ let
};
in stdenv.mkDerivation rec {
pname = "libdeltachat";
version = "1.131.6";
version = "1.131.7";

src = fetchFromGitHub {
owner = "deltachat";
repo = "deltachat-core-rust";
rev = "v${version}";
hash = "sha256-/LWWqa8f+ODP4LDIx9U9kRCFYI+5N6KztFDPbc2TiF0=";
hash = "sha256-QzNZBBQ0fFqQByaNRNebtnoljC4rQqVTxbNz2M3LDAc=";
};

patches = [
Expand Down Expand Up @@ -81,7 +82,7 @@ in stdenv.mkDerivation rec {
passthru = {
inherit cargoLock;
tests = {
inherit deltachat-repl;
inherit deltachat-desktop deltachat-repl;
python = python3.pkgs.deltachat;
};
};
Expand Down

0 comments on commit 5171694

Please sign in to comment.