Skip to content

Commit 3603bcb

Browse files
authored
signal-desktop: 7.54.0 -> 7.56.0 (#412882)
2 parents 7fdfa55 + 9b336fc commit 3603bcb

File tree

6 files changed

+39
-24
lines changed

6 files changed

+39
-24
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
diff --git a/node/build_node_bridge.py b/node/build_node_bridge.py
2+
index c983fc3..2ab06dc 100755
3+
--- a/node/build_node_bridge.py
4+
+++ b/node/build_node_bridge.py
5+
@@ -138,9 +138,6 @@ def main(args: Optional[List[str]] = None) -> int:
6+
cargo_env['CARGO_PROFILE_RELEASE_LTO'] = 'thin'
7+
# Enable ARMv8 cryptography acceleration when available
8+
cargo_env['RUSTFLAGS'] += ' --cfg aes_armv8'
9+
- # Strip absolute paths
10+
- for path in build_helpers.rust_paths_to_remap():
11+
- cargo_env['RUSTFLAGS'] += f' --remap-path-prefix {path}='
12+
13+
# If set (below), will post-process the build library using this instead of just `cp`-ing it.
14+
objcopy = None

pkgs/by-name/si/signal-desktop/libsignal-node.nix

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,23 +24,23 @@ let
2424
in
2525
rustPlatform.buildRustPackage (finalAttrs: {
2626
pname = "libsignal-node";
27-
version = "0.70.0";
27+
version = "0.72.1";
2828

2929
src = fetchFromGitHub {
3030
owner = "signalapp";
3131
repo = "libsignal";
3232
tag = "v${finalAttrs.version}";
33-
hash = "sha256-6CBhLvD0UflLzJHAMB21wSH8MWTUNx0uPdqOUo/Eq44=";
33+
hash = "sha256-A8EAHHcBFSD4ZlvFig64g4+eoZQCuqE/qv509hA3I4s=";
3434
};
3535
useFetchCargoVendor = true;
36-
cargoHash = "sha256-4bSPPf16nUQTl6INa3mLhPIe8iiFfpPw1E5fpNvnKqs=";
36+
cargoHash = "sha256-+vJrywIi/RcGGGns42XlN6S63RBil3fB4XByTLsaFVc=";
3737

3838
npmRoot = "node";
3939
npmDeps = fetchNpmDeps {
4040
name = "${finalAttrs.pname}-npm-deps";
4141
inherit (finalAttrs) version src;
4242
sourceRoot = "${finalAttrs.src.name}/${finalAttrs.npmRoot}";
43-
hash = "sha256-djk+YGZ/eUq6MXjUEE47bgKnQlUSuaoUPx8hUMtjvyQ=";
43+
hash = "sha256-ZD0ZN2b7KReGbnvarqvGpOlQ5TsJfnaHmmOWQ42Y48E=";
4444
};
4545

4646
nativeBuildInputs = [
@@ -56,9 +56,12 @@ rustPlatform.buildRustPackage (finalAttrs: {
5656
env.BORING_BSSL_PATH = "${boringssl-wrapper}";
5757
env.NIX_LDFLAGS = if stdenv.hostPlatform.isDarwin then "-lc++" else "-lstdc++";
5858

59-
patchPhase = ''
60-
runHook prePatch
61-
59+
patches = [
60+
# This is used to strip absolute paths of dependencies to avoid leaking info about build machine. Nix builders
61+
# already solve this problem by chrooting os this is not needed.
62+
./dont-strip-absolute-paths.patch
63+
];
64+
postPatch = ''
6265
substituteInPlace node/binding.gyp \
6366
--replace-fail "'--out-dir', '<(PRODUCT_DIR)/'," \
6467
"'--out-dir', '$out/lib/<(NODE_OS_NAME)-<(target_arch)/'," \
@@ -68,8 +71,6 @@ rustPlatform.buildRustPackage (finalAttrs: {
6871
substituteInPlace node/build_node_bridge.py \
6972
--replace-fail "dst_base = 'libsignal_client_%s_%s' % (node_os_name, node_arch)" \
7073
"dst_base = '@signalapp+libsignal-client'"
71-
72-
runHook postPatch
7374
'';
7475

7576
buildPhase = ''

pkgs/by-name/si/signal-desktop/package.nix

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
lib,
44
nodejs_22,
55
pnpm_10,
6-
electron_35,
6+
electron_36,
77
python3,
88
makeWrapper,
99
callPackage,
@@ -19,7 +19,7 @@
1919
let
2020
nodejs = nodejs_22;
2121
pnpm = pnpm_10.override { inherit nodejs; };
22-
electron = electron_35;
22+
electron = electron_36;
2323

2424
libsignal-node = callPackage ./libsignal-node.nix { inherit nodejs; };
2525
signal-sqlcipher = callPackage ./signal-sqlcipher.nix { inherit pnpm nodejs; };
@@ -48,13 +48,13 @@ let
4848
'';
4949
});
5050

51-
version = "7.54.0";
51+
version = "7.56.0";
5252

5353
src = fetchFromGitHub {
5454
owner = "signalapp";
5555
repo = "Signal-Desktop";
5656
tag = "v${version}";
57-
hash = "sha256-dv1Yi7gSd7kY3MSrsPjcaf2hAEq6Y+XoWtlBfvd86ac=";
57+
hash = "sha256-BrgBlDEgb08oX7Mh/P4nuoM+dkSDpB45zOtDNMYeZr0=";
5858
};
5959

6060
sticker-creator = stdenv.mkDerivation (finalAttrs: {
@@ -64,7 +64,7 @@ let
6464

6565
pnpmDeps = pnpm.fetchDeps {
6666
inherit (finalAttrs) pname src version;
67-
hash = "sha256-TuPyRVNFIlR0A4YHMpQsQ6m+lm2fsp79FzQ1P5qqjIc=";
67+
hash = "sha256-cT7Ixl/V/mesPHvJUsG63Y/wXwKjbjkjdjP3S7uEOa0=";
6868
};
6969

7070
strictDeps = true;
@@ -116,15 +116,15 @@ stdenv.mkDerivation (finalAttrs: {
116116
;
117117
hash =
118118
if withAppleEmojis then
119-
"sha256-Kdg0+kLEDFobWEEhJgKuaou/pYwn1dTugye7OcMYfEQ="
119+
"sha256-RP3d1t4bbvehdCDSL3bHrlJEnn65TDViI5jVjSiuJw8="
120120
else
121-
"sha256-cit/Hn7L6qmfIJCDF2wlx/4aKygRYy+zvBQGX6Mg+og=";
121+
"sha256-KJvc+kVcwRKsUVW3lK7fPXUSqDQlJFPbYAzQjhFtfoU=";
122122
};
123123

124124
env = {
125125
ELECTRON_SKIP_BINARY_DOWNLOAD = "1";
126126
SIGNAL_ENV = "production";
127-
SOURCE_DATE_EPOCH = 1747170390;
127+
SOURCE_DATE_EPOCH = 1748456277;
128128
};
129129

130130
preBuild = ''

pkgs/by-name/si/signal-desktop/ringrtc.nix

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,16 @@ let
1919
in
2020
rustPlatform.buildRustPackage (finalAttrs: {
2121
pname = "ringrtc";
22-
version = "2.51.0";
22+
version = "2.52.0";
2323

2424
src = fetchFromGitHub {
2525
owner = "signalapp";
2626
repo = "ringrtc";
2727
tag = "v${finalAttrs.version}";
28-
hash = "sha256-PLrGLW6pDoCNpbWASxAqockAJRoeBrkBdxNOHYrQu4s=";
28+
hash = "sha256-Ao1mFJYPnV3lfg4SERwq4dGnBhOVI9pwsqPAsUtV/iY=";
2929
};
3030
useFetchCargoVendor = true;
31-
cargoHash = "sha256-u38VOV2xdNG1WFox+SWT9ejJD1TjK0yAI6lCB9r75iY=";
31+
cargoHash = "sha256-mO9t4ZDDM5Y9cMkmdrYrdGYukN1xfGogPSNq+S1t4Us=";
3232

3333
cargoBuildFlags = [
3434
"-p"

pkgs/by-name/si/signal-desktop/signal-sqlcipher.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@
1111
}:
1212
stdenv.mkDerivation (finalAttrs: {
1313
pname = "node-sqlcipher";
14-
version = "2.0.1";
14+
version = "2.0.3";
1515

1616
src = fetchFromGitHub {
1717
owner = "signalapp";
1818
repo = "node-sqlcipher";
1919
tag = "v${finalAttrs.version}";
20-
hash = "sha256-15t2HuEYdCxShK703/z3bb1VCgSNpziaK5+wM3TqSHg=";
20+
hash = "sha256-H5/+XcXnINRL5BWItWx6YaPP46+k1xTbyfDqHPCRDXk=";
2121
};
2222

2323
pnpmDeps = pnpm.fetchDeps {

pkgs/by-name/si/signal-desktop/webrtc-sources.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
22
"src": {
33
"args": {
4-
"hash": "sha256-yomovlwRmrzsN+dvmUgOM6pzBTH41QuHQXnEJBhQglY=",
4+
"hash": "sha256-AFMJmIo7O4fYrVWABciQphTxHQSj4CdfhluIIPpPWAw=",
55
"owner": "signalapp",
66
"repo": "webrtc",
7-
"tag": "6998b"
7+
"tag": "6998c"
88
},
99
"fetcher": "fetchFromGitHub"
1010
},

0 commit comments

Comments
 (0)