2424in
2525rustPlatform . 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 = ''
0 commit comments