summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/python-mapnik/python-mapnik_std_optional.patch
diff options
context:
space:
mode:
authorDavHau <hsngrmpf+github@gmail.com>2024-02-27 21:56:15 +0700
committerDavHau <hsngrmpf+github@gmail.com>2024-03-05 14:25:42 +0700
commit9a5b86c1894dba9c49dd0be91ec221ca3ac18e31 (patch)
tree28258c9942642025218560968186bb14884bf5f0 /pkgs/development/python-modules/python-mapnik/python-mapnik_std_optional.patch
parent0483c15ea21397ff2d4f67921cb854d99adb7c91 (diff)
writers: add support for wrapping
Add a makeWrapperArgs argument to all script writers under pkgs.writers. This can be used to set, prefix, or suffix the PATH or other environment variables which improves the ability to generate scripts with reproducible behavior. Some of the writers (writeBash, writeDash, writeFish, writeNu) previously did not support passing an argument set, for example ``` writeBash "example" "echo hello" ``` In order to add the new capability to these writers as well, their call signature is now overloaded in order to allow the following: (The old call style from the example above remains intact) ``` writeBash "example" { makeWrapperArgs = [ "--prefix" "PATH" ":" "${pkgs.hello}/bin" ]; } '' hello '' ``` Done as well: - add tests - add more docs - fix some misleading docs - extend existing docs with more examples
Diffstat (limited to 'pkgs/development/python-modules/python-mapnik/python-mapnik_std_optional.patch')
0 files changed, 0 insertions, 0 deletions