anchor.diff:      runHook postInstall
     '';
   
  -  # Required for $SQLCIPHER_LIB which contains "/build/" inside the path:
  -  noAuditTmpdir = true;
  -
     preFixup = ''
  -    export SQLCIPHER_LIB="$out/lib/Signal/resources/app.asar.unpacked/node_modules/better-sqlite3/build/Release/better_sqlite3.node"
  -    test -x "$SQLCIPHER_LIB" # To ensure the location hasn't changed
       gappsWrapperArgs+=(
         --prefix LD_LIBRARY_PATH : "${lib.makeLibraryPath [ stdenv.cc.cc ] }"
  -      --prefix LD_PRELOAD : "$SQLCIPHER_LIB"
  +      --prefix LD_PRELOAD : "${sqlcipher-signal}/lib/libsqlcipher.so"
         ${customLanguageWrapperArgs}
       )
   
  
positive.code:     in lib.optionalString (spellcheckerLanguage != null) ''
        --set HUNSPELL_DICTIONARIES "${hunspellDicts.${hunspellDict}}/share/hunspell" \
        --set LC_MESSAGES "${spellcheckerLanguage}"'');
  in stdenv.mkDerivation rec {
    pname = "signal-desktop";
    version = "5.19.0"; # Please backport all updates to the stable channel.
  
negative.code: , hunspellDicts, spellcheckerLanguage ? null # E.g. "de_DE"
  # For a full list of available languages:
  # $ cat pkgs/development/libraries/hunspell/dictionaries.nix | grep "dictFileName =" | awk '{ print $3 }'
  , sqlcipher
  }:
  
  let
  