summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/python-mapnik/python-mapnik_std_optional.patch
diff options
context:
space:
mode:
authorr-vdp <ramses@well-founded.dev>2025-01-23 01:42:42 +0100
committerr-vdp <ramses@well-founded.dev>2025-01-23 15:51:37 +0100
commit113dbd79de4d1825a6cae69088c4f8db13744dbe (patch)
treeef54a6910fb00c3dc5b6b22cbda80304b6ad10f6 /pkgs/development/python-modules/python-mapnik/python-mapnik_std_optional.patch
parent864f89f98b0b4e1bbcb762b025fd83da8bc1bae0 (diff)
nixos/activation: improve preSwitchChecks
A couple of improvements: 1. Avoid the generally discouraged apply argument to options, as it has quite weird semantics 2. Avoid issues when a user calls a preSwitchCheck `script`, which would've been silently overridden by the existing implementation. Reliance on a special attribute name like that is bound to lead to a very-hard-to-debug problem for someone at some point 3. Use writeShellApplication so that the preSwitchChecks are checked by shellcheck and and so that they run with basic bash guardrails 4. Fix shellcheck issue (testing the value of $?) 5. Add a positive preSwitchCheck to the nixos test, to make sure that that works as intended
Diffstat (limited to 'pkgs/development/python-modules/python-mapnik/python-mapnik_std_optional.patch')
0 files changed, 0 insertions, 0 deletions