Skip to content

Commit

Permalink
deltachat-desktop: ensure libdeltachat version matches jsonrpc-client
Browse files Browse the repository at this point in the history
  • Loading branch information
dotlambda committed Nov 25, 2023
1 parent 3d8eb1b commit 80888d4
Showing 1 changed file with 9 additions and 0 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 @@ -46,7 +47,15 @@ buildNpmPackage rec {

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

0 comments on commit 80888d4

Please sign in to comment.