diff options
Diffstat (limited to 'pkgs/applications/networking/instant-messengers/deltachat-desktop')
-rw-r--r-- | pkgs/applications/networking/instant-messengers/deltachat-desktop/default.nix | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/pkgs/applications/networking/instant-messengers/deltachat-desktop/default.nix b/pkgs/applications/networking/instant-messengers/deltachat-desktop/default.nix index c3117c80a8aea..a946ab60e4db5 100644 --- a/pkgs/applications/networking/instant-messengers/deltachat-desktop/default.nix +++ b/pkgs/applications/networking/instant-messengers/deltachat-desktop/default.nix @@ -5,6 +5,7 @@ , buildGoModule , esbuild , fetchFromGitHub +, jq , libdeltachat , makeDesktopItem , makeWrapper @@ -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 |