summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/python-mapnik/python-mapnik_std_optional.patch
diff options
context:
space:
mode:
authorJan Tojnar <jtojnar@gmail.com>2022-04-30 02:15:56 +0200
committerJan Tojnar <jtojnar@gmail.com>2022-05-02 03:56:12 +0200
commit03e31c533ce0bc568d2aebed5847934d7224c735 (patch)
tree406ec4d813055da80c93fd2354ecef24a7d19795 /pkgs/development/python-modules/python-mapnik/python-mapnik_std_optional.patch
parentb2ae4d5a0ed0578f3bed6424c0ba51fc9dd61a18 (diff)
php.mkExtension: make source name agnostic
PHP obtained from Git contains files directly in the top-level directory, which will be placed in Nix store. The generic builder will then copy it to the /build sandbox as its basename with hash stripped (e.g. source/). This breaks the assumption of `mkExtension`, which expects that PHP’s source will be extracted into `php-«version»/` directory, since that is what the release tarballs contain. Let’s unset the `sourceRoot`, leaving it to `unpackPhase` to find the source directory. Then, we will be able go to the extension directory from there. We use custom pre-configure phase so that both `postPatch` and `preConfigure` is available to consumers.
Diffstat (limited to 'pkgs/development/python-modules/python-mapnik/python-mapnik_std_optional.patch')
0 files changed, 0 insertions, 0 deletions