From c9a3fe742a0f7bae31a796750e25f05159610fc3 Mon Sep 17 00:00:00 2001 From: Thomas Gerbet Date: Sun, 15 Dec 2024 00:35:56 +0100 Subject: [PATCH] standardnotes: 3.181.23 -> 3.195.13 Closes #293270 Closes #360697 "Changelog": https://github.com/standardnotes/app/compare/%40standardnotes/desktop%403.181.23...%40standardnotes/desktop%403.195.14 (cherry picked from commit 1c29bf1dd4a28ba2c1e290095732573faff40ee1) --- pkgs/applications/editors/standardnotes/default.nix | 8 ++++++++ pkgs/applications/editors/standardnotes/src.json | 10 +++++----- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/pkgs/applications/editors/standardnotes/default.nix b/pkgs/applications/editors/standardnotes/default.nix index 616439dc8b925..d2a957201713a 100644 --- a/pkgs/applications/editors/standardnotes/default.nix +++ b/pkgs/applications/editors/standardnotes/default.nix @@ -7,6 +7,7 @@ electron, libsecret, asar, + python3, glib, desktop-file-utils, callPackage, @@ -55,6 +56,13 @@ stdenv.mkDerivation rec { mkdir -p $out/bin $out/share/standardnotes cp -R usr/share/{applications,icons} $out/share cp -R opt/Standard\ Notes/resources/app.asar $out/share/standardnotes/ + cp -R opt/Standard\ Notes/resources/app.asar.unpacked $out/share/standardnotes/ + rm $out/share/standardnotes/app.asar.unpacked/node_modules/cbor-extract/build/node_gyp_bins/python3 + ln -s ${python3.interpreter} $out/share/standardnotes/app.asar.unpacked/node_modules/cbor-extract/build/node_gyp_bins/python3 + ${lib.optionalString stdenv.hostPlatform.isAarch64 '' + rm $out/share/standardnotes/app.asar.unpacked/node_modules/microtime/build/node_gyp_bins/python3 + ln -s ${python3.interpreter} $out/share/standardnotes/app.asar.unpacked/node_modules/microtime/build/node_gyp_bins/python3 + ''} asar e $out/share/standardnotes/app.asar asar-unpacked find asar-unpacked -name '*.node' -exec patchelf \ --add-rpath "${libPath}" \ diff --git a/pkgs/applications/editors/standardnotes/src.json b/pkgs/applications/editors/standardnotes/src.json index 62e1ae0d9525f..078074d06ab75 100644 --- a/pkgs/applications/editors/standardnotes/src.json +++ b/pkgs/applications/editors/standardnotes/src.json @@ -1,13 +1,13 @@ { - "version": "3.181.23", + "version": "3.195.13", "deb": { "x86_64-linux": { - "url": "https://github.com/standardnotes/app/releases/download/%40standardnotes/desktop%403.181.23/standard-notes-3.181.23-linux-amd64.deb", - "hash": "sha512-zWjST3guI0qifvZIwSLJ0nIpU12Mu3+m25Xdoqv0BQC7tscChEdCGUAJRUKHEf0b8l4uvp8qBGHiBOfbrIi//w==" + "url": "https://github.com/standardnotes/app/releases/download/%40standardnotes/desktop%403.195.13/standard-notes-3.195.13-linux-amd64.deb", + "hash": "sha512-z7tZkOvzYzEPhu3rz8PG7mWdEua1z2ToVoj6l2wmvZUx/nS6lQ3yIFhEvpnMyXRZ2qDn4ihnBT20fyZttvkjMQ==" }, "aarch64-linux": { - "url": "https://github.com/standardnotes/app/releases/download/%40standardnotes/desktop%403.181.23/standard-notes-3.181.23-linux-arm64.deb", - "hash": "sha512-7R5Ym44mrVgUiqdt6NL8F9uUUOroQRxwn30xKThyIQm2HGRUJivRfOws98El9zV8bKG1khk4DZaMiLQSMjrtaQ==" + "url": "https://github.com/standardnotes/app/releases/download/%40standardnotes/desktop%403.195.13/standard-notes-3.195.13-linux-arm64.deb", + "hash": "sha512-c9p7aLCkcqdtx/X2vrmb5GCyc7JtR9O9GVwrkgGPJpZ0FdSR5zhX0nI9sJFHBIA/GuPuDYOM4fimyfpQzy0Nfw==" } } }