summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/python-mapnik/python-mapnik_std_optional.patch
diff options
context:
space:
mode:
authorNaïm Favier <n@monade.li>2022-11-15 18:41:36 +0100
committerNaïm Favier <n@monade.li>2022-11-17 00:06:31 +0100
commit839fdd101c3749468d44348114a2994bb8414546 (patch)
tree5712de6fffaf7a0060ac298c6ad5d97dce0b24d4 /pkgs/development/python-modules/python-mapnik/python-mapnik_std_optional.patch
parentc91f68c3d88e646e5d1edb71f8c322620bafa644 (diff)
dwarf-fortress.dfhack: make overridable
Currently, it is quite hard to override anything about dfhack (for example, to add plugins at build time), because 1. it is not exposed anywhere, so you have to do something like `dwarf-fortress.override (oldArgs: { dfhack = oldArgs.dfhack.override...; })` 2. the final `dfhack` derivation is a `buildEnv`, so `overrideAttrs` doesn't work as expected. This fixes 1 by adding `dfhack` to the wrapper's `passthru`, and 2 by moving `twbt.lib` (which is the only reason for the dfhack `buildEnv`) into the wrapper. Also adds an `extraPackages` argument to the wrapper, and copies `*.init` files from the env to the DF directory so that we can easily add a `dfhack.init`. With these changes, I was able to build dfhack with the dfplex plugin.
Diffstat (limited to 'pkgs/development/python-modules/python-mapnik/python-mapnik_std_optional.patch')
0 files changed, 0 insertions, 0 deletions