···1-#! @shell@ -e
23# The following lines create/update the HylaFAX spool directory:
4# Subdirectories/files with persistent data are kept,
···80chown @faxuser@:@faxgroup@ clientlog faxcron.lastrun xferfaxlog
8182# create symlinks for frozen directories/files
83-lnsym --target-directory=. "@hylafax@"/spool/{COPYRIGHT,bin,config}
8485# create empty temporary directories
86update --mode=0700 -d client dev status
···93cd "@spoolAreaPath@/etc"
9495# create symlinks to all files in template's etc
96-lnsym --target-directory=. "@hylafax@/spool/etc"/*
9798# set LOCKDIR in setup.cache
99sed --regexp-extended 's|^(UUCP_LOCKDIR=).*$|\1'"'@lockPath@'|g" --in-place setup.cache
···1+#! @runtimeShell@ -e
23# The following lines create/update the HylaFAX spool directory:
4# Subdirectories/files with persistent data are kept,
···80chown @faxuser@:@faxgroup@ clientlog faxcron.lastrun xferfaxlog
8182# create symlinks for frozen directories/files
83+lnsym --target-directory=. "@hylafaxplus@"/spool/{COPYRIGHT,bin,config}
8485# create empty temporary directories
86update --mode=0700 -d client dev status
···93cd "@spoolAreaPath@/etc"
9495# create symlinks to all files in template's etc
96+lnsym --target-directory=. "@hylafaxplus@/spool/etc"/*
9798# set LOCKDIR in setup.cache
99sed --regexp-extended 's|^(UUCP_LOCKDIR=).*$|\1'"'@lockPath@'|g" --in-place setup.cache
···28 else "");
29in stdenv.mkDerivation rec {
30 pname = "signal-desktop";
31- version = "5.1.0"; # Please backport all updates to the stable channel.
32 # All releases have a limited lifetime and "expire" 90 days after the release.
33 # When releases "expire" the application becomes unusable until an update is
34 # applied. The expiration date for the current release can be extracted with:
···3839 src = fetchurl {
40 url = "https://updates.signal.org/desktop/apt/pool/main/s/signal-desktop/signal-desktop_${version}_amd64.deb";
41- sha256 = "1cirnnxy63jfkl98472k25bn1yp5apa7b5s74r42sxhlwzwkplw1";
42 };
4344 nativeBuildInputs = [
···28 else "");
29in stdenv.mkDerivation rec {
30 pname = "signal-desktop";
31+ version = "5.2.0"; # Please backport all updates to the stable channel.
32 # All releases have a limited lifetime and "expire" 90 days after the release.
33 # When releases "expire" the application becomes unusable until an update is
34 # applied. The expiration date for the current release can be extracted with:
···3839 src = fetchurl {
40 url = "https://updates.signal.org/desktop/apt/pool/main/s/signal-desktop/signal-desktop_${version}_amd64.deb";
41+ sha256 = "0jvimpmz1d0pg9zpnyzm7a3g7vzapq62cphmvjhh67dxv5jih37k";
42 };
4344 nativeBuildInputs = [
···103 })
104 ];
1050106 postPatch = ''
107+ # Otherwise tries to ensure /var/run exists.
108 sed -i "/install_subdir('run', install_dir: get_option('localstatedir'))/d" \
109 qga/meson.build
110+111+ # TODO: On aarch64-darwin, we automatically codesign everything, but qemu
112+ # needs specific entitlements and does its own signing. This codesign
113+ # command fails, but we have no fix at the moment, so this disables it.
114+ # This means `-accel hvf` is broken for now, on aarch64-darwin only.
115+ substituteInPlace meson.build \
116+ --replace 'if exe_sign' 'if false'
117 '';
118119 preConfigure = ''
···1-# `configure` (maybe others) set `POSIXLY_CORRECT`, which
2-# breaks the gcc wrapper script of nixpkgs (maybe others).
3-# We simply un-export `POSIXLY_CORRECT` after each export so
4-# its effects don't apply within nixpkgs wrapper scripts.
5-grep -rlF POSIXLY_CORRECT | xargs \
6- sed '/export *POSIXLY_CORRECT/a export -n POSIXLY_CORRECT' -i
7-8# Replace strange default value for the nobody account.
9if test -n "@maxuid@"
10then
···00000001# Replace strange default value for the nobody account.
2if test -n "@maxuid@"
3then