···11-#! @shell@ -e
11+#! @runtimeShell@ -e
2233# skip this if there are no modems at all
44if ! stat -t "@spoolAreaPath@"/etc/config.* >/dev/null 2>&1
···2828 else "");
2929in stdenv.mkDerivation rec {
3030 pname = "signal-desktop";
3131- version = "5.1.0"; # Please backport all updates to the stable channel.
3131+ version = "5.2.0"; # Please backport all updates to the stable channel.
3232 # All releases have a limited lifetime and "expire" 90 days after the release.
3333 # When releases "expire" the application becomes unusable until an update is
3434 # applied. The expiration date for the current release can be extracted with:
···38383939 src = fetchurl {
4040 url = "https://updates.signal.org/desktop/apt/pool/main/s/signal-desktop/signal-desktop_${version}_amd64.deb";
4141- sha256 = "1cirnnxy63jfkl98472k25bn1yp5apa7b5s74r42sxhlwzwkplw1";
4141+ sha256 = "0jvimpmz1d0pg9zpnyzm7a3g7vzapq62cphmvjhh67dxv5jih37k";
4242 };
43434444 nativeBuildInputs = [
···103103 })
104104 ];
105105106106- # Otherwise tries to ensure /var/run exists.
107106 postPatch = ''
107107+ # Otherwise tries to ensure /var/run exists.
108108 sed -i "/install_subdir('run', install_dir: get_option('localstatedir'))/d" \
109109 qga/meson.build
110110+111111+ # TODO: On aarch64-darwin, we automatically codesign everything, but qemu
112112+ # needs specific entitlements and does its own signing. This codesign
113113+ # command fails, but we have no fix at the moment, so this disables it.
114114+ # This means `-accel hvf` is broken for now, on aarch64-darwin only.
115115+ substituteInPlace meson.build \
116116+ --replace 'if exe_sign' 'if false'
110117 '';
111118112119 preConfigure = ''
···11-# `configure` (maybe others) set `POSIXLY_CORRECT`, which
22-# breaks the gcc wrapper script of nixpkgs (maybe others).
33-# We simply un-export `POSIXLY_CORRECT` after each export so
44-# its effects don't apply within nixpkgs wrapper scripts.
55-grep -rlF POSIXLY_CORRECT | xargs \
66- sed '/export *POSIXLY_CORRECT/a export -n POSIXLY_CORRECT' -i
77-81# Replace strange default value for the nobody account.
92if test -n "@maxuid@"
103then