diff options
| author | zseri <zseri.devel@ytrizja.de> | 2021-12-02 09:38:13 +0100 |
|---|---|---|
| committer | zseri <zseri.devel@ytrizja.de> | 2022-02-23 23:38:05 +0100 |
| commit | bed1ee054887e0d23f75a55afc5d497c71a6a09c (patch) | |
| tree | 02acb3669d0af55224e4c989d37774590fc38e66 /pkgs/development/python-modules/python-mapnik/python-mapnik_std_optional.patch | |
| parent | 9a93279738708df0801185a35fb31671b4616b70 (diff) | |
webkitgtk: make it easier to disable avahi globally by fixing enableGeoLocation option
The problem with enableGeoLocation was that it didn't compose well with
.overrideAttrs and setting geoclue2=null at the overlay level
because of the assert statement.
Thus, when combined with disabling libsecret, the resulting override code was:
avahi = null;
geoclue2 = { outPath = throw "geoclue is disabled"; };
webkitgtk = prev.lib.pipe prev.webkitgtk [
(x: x.override { enableGeoLocation = false; geoclue2 = prev.geoclue2; })
(x: x.overrideAttrs (old: { cmakeFlags = old.cmakeFlags ++ [ "-DUSE_LIBSECRET=OFF" ]; }))
(x: x.override { enableGeoLocation = false; geoclue2 = null; libsecret = null; })
];
It works, but is unnecessarily complex.
: detailed motviation
libsecret and geoclue2 are actually completely independent,
the real conflict is between assert and override/overrideAttrs which
don't work as expected; e.g. you can pass an updated parameter, but the
original parameter at callPackage "calltime" after recusion through overlays
gets used, so when globally setting "geoclue2=null;" in an overlay,
the assert is always hit without any way to work around that
Diffstat (limited to 'pkgs/development/python-modules/python-mapnik/python-mapnik_std_optional.patch')
0 files changed, 0 insertions, 0 deletions
